lib/Assertions/Css/Exists.php 1 location
|
@@ 8-20 (lines=13) @@
|
| 5 |
|
use Magium\Assertions\SelectorAssertionInterface; |
| 6 |
|
use Magium\WebDriver\WebDriver; |
| 7 |
|
|
| 8 |
|
class Exists extends \Magium\Assertions\Element\Exists implements SelectorAssertionInterface |
| 9 |
|
{ |
| 10 |
|
|
| 11 |
|
const ASSERTION = 'Css/Exists'; |
| 12 |
|
|
| 13 |
|
public function assertSelector($selector) |
| 14 |
|
{ |
| 15 |
|
$this->setSelector($selector); |
| 16 |
|
$this->setBy(WebDriver::BY_CSS_SELECTOR); |
| 17 |
|
$this->assert(); |
| 18 |
|
} |
| 19 |
|
|
| 20 |
|
} |
| 21 |
|
|
lib/Assertions/Id/Exists.php 1 location
|
@@ 8-20 (lines=13) @@
|
| 5 |
|
use Magium\Assertions\SelectorAssertionInterface; |
| 6 |
|
use Magium\WebDriver\WebDriver; |
| 7 |
|
|
| 8 |
|
class Exists extends \Magium\Assertions\Element\Exists implements SelectorAssertionInterface |
| 9 |
|
{ |
| 10 |
|
|
| 11 |
|
const ASSERTION = 'Id/Exists'; |
| 12 |
|
|
| 13 |
|
public function assertSelector($selector) |
| 14 |
|
{ |
| 15 |
|
$this->setSelector($selector); |
| 16 |
|
$this->setBy(WebDriver::BY_ID); |
| 17 |
|
$this->assert(); |
| 18 |
|
} |
| 19 |
|
|
| 20 |
|
} |
| 21 |
|
|