Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function testError(string $url = null, string $expect = null) : void |
||
30 | { |
||
31 | /* setup */ |
||
32 | |||
33 | $this->_driver->get($url); |
||
34 | $titleElement = $this->_driver->findElement(WebDriverBy::cssSelector('h2.rs-title-content')); |
||
35 | |||
36 | /* actual */ |
||
37 | |||
38 | $actual = $titleElement->getText(); |
||
39 | |||
40 | /* compare */ |
||
41 | |||
42 | $this->assertEquals($expect, $actual); |
||
43 | } |
||
44 | } |
||
45 |