@@ -176,6 +176,9 @@ discard block |
||
176 | 176 | } |
177 | 177 | } |
178 | 178 | |
179 | + /** |
|
180 | + * @param null|string $selector |
|
181 | + */ |
|
179 | 182 | public function assertElementClickable($selector, $by = WebDriver::BY_ID) |
180 | 183 | { |
181 | 184 | $this->elementAssertion($selector, $by, Clickable::ASSERTION); |
@@ -188,6 +191,9 @@ discard block |
||
188 | 191 | |
189 | 192 | } |
190 | 193 | |
194 | + /** |
|
195 | + * @param string $namespace |
|
196 | + */ |
|
191 | 197 | public static function addBaseNamespace($namespace) |
192 | 198 | { |
193 | 199 | if (!in_array($namespace, self::$baseNamespaces)) { |
@@ -195,6 +201,9 @@ discard block |
||
195 | 201 | } |
196 | 202 | } |
197 | 203 | |
204 | + /** |
|
205 | + * @param string $prefix |
|
206 | + */ |
|
198 | 207 | public static function resolveClass( $class, $prefix = null) |
199 | 208 | { |
200 | 209 | $origClass = $class; |
@@ -227,6 +236,10 @@ discard block |
||
227 | 236 | return $origClass; |
228 | 237 | } |
229 | 238 | |
239 | + /** |
|
240 | + * @param string $type |
|
241 | + * @param string $preference |
|
242 | + */ |
|
230 | 243 | public function setTypePreference($type, $preference) |
231 | 244 | { |
232 | 245 | $type = self::resolveClass($type); |
@@ -236,6 +249,9 @@ discard block |
||
236 | 249 | |
237 | 250 | } |
238 | 251 | |
252 | + /** |
|
253 | + * @return string |
|
254 | + */ |
|
239 | 255 | protected function normalizeClassRequest($class) |
240 | 256 | { |
241 | 257 | return str_replace('/', '\\', $class); |
@@ -522,7 +538,7 @@ discard block |
||
522 | 538 | } |
523 | 539 | |
524 | 540 | /** |
525 | - * @param $xpath |
|
541 | + * @param string $xpath |
|
526 | 542 | * @return \Facebook\WebDriver\Remote\RemoteWebElement |
527 | 543 | */ |
528 | 544 | |
@@ -551,6 +567,12 @@ discard block |
||
551 | 567 | return $this->webdriver->byCssSelector($selector); |
552 | 568 | } |
553 | 569 | |
570 | + /** |
|
571 | + * @param string $xpathTemplate |
|
572 | + * @param string $text |
|
573 | + * @param string $specificNodeType |
|
574 | + * @param string $parentElementSelector |
|
575 | + */ |
|
554 | 576 | protected function getElementByTextXpath($xpathTemplate, $text, $specificNodeType = null, $parentElementSelector = null) |
555 | 577 | { |
556 | 578 |