@@ -251,6 +251,9 @@ discard block |
||
| 251 | 251 | } |
| 252 | 252 | } |
| 253 | 253 | |
| 254 | + /** |
|
| 255 | + * @param null|string $selector |
|
| 256 | + */ |
|
| 254 | 257 | public function assertElementClickable($selector, $by = WebDriver::BY_ID) |
| 255 | 258 | { |
| 256 | 259 | $this->elementAssertion($selector, $by, Clickable::ASSERTION); |
@@ -268,6 +271,9 @@ discard block |
||
| 268 | 271 | $this->testCaseConfiguration = $class; |
| 269 | 272 | } |
| 270 | 273 | |
| 274 | + /** |
|
| 275 | + * @param string $namespace |
|
| 276 | + */ |
|
| 271 | 277 | public static function addBaseNamespace($namespace) |
| 272 | 278 | { |
| 273 | 279 | if (!in_array($namespace, self::$baseNamespaces)) { |
@@ -275,6 +281,9 @@ discard block |
||
| 275 | 281 | } |
| 276 | 282 | } |
| 277 | 283 | |
| 284 | + /** |
|
| 285 | + * @param string $prefix |
|
| 286 | + */ |
|
| 278 | 287 | public static function resolveClass( $class, $prefix = null) |
| 279 | 288 | { |
| 280 | 289 | $origClass = $class; |
@@ -306,6 +315,9 @@ discard block |
||
| 306 | 315 | |
| 307 | 316 | } |
| 308 | 317 | |
| 318 | + /** |
|
| 319 | + * @return string |
|
| 320 | + */ |
|
| 309 | 321 | protected function normalizeClassRequest($class) |
| 310 | 322 | { |
| 311 | 323 | return str_replace('/', '\\', $class); |
@@ -398,7 +410,7 @@ discard block |
||
| 398 | 410 | * |
| 399 | 411 | * Options: 1s (1 second), 1ms (1 millisecond), 1us (1 microsecond), 1ns (1 nanosecond) |
| 400 | 412 | * |
| 401 | - * @param $time |
|
| 413 | + * @param string $time |
|
| 402 | 414 | */ |
| 403 | 415 | |
| 404 | 416 | public function sleep($time) |
@@ -600,7 +612,7 @@ discard block |
||
| 600 | 612 | } |
| 601 | 613 | |
| 602 | 614 | /** |
| 603 | - * @param $xpath |
|
| 615 | + * @param string $xpath |
|
| 604 | 616 | * @return \Facebook\WebDriver\Remote\RemoteWebElement |
| 605 | 617 | */ |
| 606 | 618 | |
@@ -629,6 +641,12 @@ discard block |
||
| 629 | 641 | return $this->webdriver->byCssSelector($selector); |
| 630 | 642 | } |
| 631 | 643 | |
| 644 | + /** |
|
| 645 | + * @param string $xpathTemplate |
|
| 646 | + * @param string $text |
|
| 647 | + * @param string $specificNodeType |
|
| 648 | + * @param string $parentElementSelector |
|
| 649 | + */ |
|
| 632 | 650 | protected function getElementByTextXpath($xpathTemplate, $text, $specificNodeType = null, $parentElementSelector = null) |
| 633 | 651 | { |
| 634 | 652 | |