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