1 | <?php |
||
7 | class CustomAssert extends WebAssert |
||
8 | { |
||
9 | /** |
||
10 | * Checks that specific element exists and is visible on the current page. |
||
11 | * |
||
12 | * @param string $selectorType element selector type (css, xpath) |
||
13 | * @param string $selector element selector |
||
14 | * @param Element $container document to check against |
||
15 | * |
||
16 | * @return \Behat\Mink\Element\NodeElement |
||
17 | * |
||
18 | * @throws ElementNotVisible |
||
19 | */ |
||
20 | public function elementIsVisible($selectorType, $selector, Element $container = null) |
||
30 | /** |
||
31 | * Checks that specific field exists on the current page. |
||
32 | * |
||
33 | * @param string $field field id|name|label|value |
||
34 | * @param Element $container document to check against |
||
35 | * |
||
36 | * @return \Behat\Mink\Element\NodeElement |
||
37 | * |
||
38 | * @throws ElementNotVisible |
||
39 | */ |
||
40 | public function fieldIsVisible($field, Element $container = null) |
||
50 | } |
||
51 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.