@@ -210,6 +210,9 @@ discard block |
||
210 | 210 | } |
211 | 211 | } |
212 | 212 | |
213 | + /** |
|
214 | + * @param null|string $selector |
|
215 | + */ |
|
213 | 216 | public function assertElementClickable($selector, $by = WebDriver::BY_ID) |
214 | 217 | { |
215 | 218 | $this->elementAssertion($selector, $by, Clickable::ASSERTION); |
@@ -227,6 +230,9 @@ discard block |
||
227 | 230 | $this->testCaseConfiguration = $class; |
228 | 231 | } |
229 | 232 | |
233 | + /** |
|
234 | + * @param string $namespace |
|
235 | + */ |
|
230 | 236 | public static function addBaseNamespace($namespace) |
231 | 237 | { |
232 | 238 | if (!in_array($namespace, self::$baseNamespaces)) { |
@@ -234,6 +240,9 @@ discard block |
||
234 | 240 | } |
235 | 241 | } |
236 | 242 | |
243 | + /** |
|
244 | + * @param string $prefix |
|
245 | + */ |
|
237 | 246 | public static function resolveClass( $class, $prefix = null) |
238 | 247 | { |
239 | 248 | $origClass = $class; |
@@ -265,6 +274,9 @@ discard block |
||
265 | 274 | |
266 | 275 | } |
267 | 276 | |
277 | + /** |
|
278 | + * @return string |
|
279 | + */ |
|
268 | 280 | protected function normalizeClassRequest($class) |
269 | 281 | { |
270 | 282 | return str_replace('/', '\\', $class); |
@@ -295,7 +307,6 @@ discard block |
||
295 | 307 | |
296 | 308 | /** |
297 | 309 | * |
298 | - * @param string $navigator |
|
299 | 310 | * @return mixed |
300 | 311 | */ |
301 | 312 | |
@@ -357,7 +368,7 @@ discard block |
||
357 | 368 | * |
358 | 369 | * Options: 1s (1 second), 1ms (1 millisecond), 1us (1 microsecond), 1ns (1 nanosecond) |
359 | 370 | * |
360 | - * @param $time |
|
371 | + * @param string $time |
|
361 | 372 | */ |
362 | 373 | |
363 | 374 | public function sleep($time) |
@@ -546,7 +557,7 @@ discard block |
||
546 | 557 | } |
547 | 558 | |
548 | 559 | /** |
549 | - * @param $xpath |
|
560 | + * @param string $xpath |
|
550 | 561 | * @return \Facebook\WebDriver\Remote\RemoteWebElement |
551 | 562 | */ |
552 | 563 |
@@ -19,6 +19,9 @@ discard block |
||
19 | 19 | |
20 | 20 | protected $remainingRows; |
21 | 21 | |
22 | + /** |
|
23 | + * @return string |
|
24 | + */ |
|
22 | 25 | abstract function getBaseXpath(); |
23 | 26 | |
24 | 27 | public function extract() |
@@ -90,7 +93,7 @@ discard block |
||
90 | 93 | |
91 | 94 | |
92 | 95 | /** |
93 | - * @return mixed |
|
96 | + * @return string |
|
94 | 97 | */ |
95 | 98 | public function getName() |
96 | 99 | { |
@@ -98,7 +101,7 @@ discard block |
||
98 | 101 | } |
99 | 102 | |
100 | 103 | /** |
101 | - * @return mixed |
|
104 | + * @return string |
|
102 | 105 | */ |
103 | 106 | public function getBusiness() |
104 | 107 | { |
@@ -106,7 +109,7 @@ discard block |
||
106 | 109 | } |
107 | 110 | |
108 | 111 | /** |
109 | - * @return mixed |
|
112 | + * @return string |
|
110 | 113 | */ |
111 | 114 | public function getStreet1() |
112 | 115 | { |
@@ -114,7 +117,7 @@ discard block |
||
114 | 117 | } |
115 | 118 | |
116 | 119 | /** |
117 | - * @return mixed |
|
120 | + * @return string |
|
118 | 121 | */ |
119 | 122 | public function getStreet2() |
120 | 123 | { |
@@ -122,7 +125,7 @@ discard block |
||
122 | 125 | } |
123 | 126 | |
124 | 127 | /** |
125 | - * @return mixed |
|
128 | + * @return string |
|
126 | 129 | */ |
127 | 130 | public function getCity() |
128 | 131 | { |
@@ -130,7 +133,7 @@ discard block |
||
130 | 133 | } |
131 | 134 | |
132 | 135 | /** |
133 | - * @return mixed |
|
136 | + * @return string |
|
134 | 137 | */ |
135 | 138 | public function getRegion() |
136 | 139 | { |
@@ -138,7 +141,7 @@ discard block |
||
138 | 141 | } |
139 | 142 | |
140 | 143 | /** |
141 | - * @return mixed |
|
144 | + * @return string |
|
142 | 145 | */ |
143 | 146 | public function getPostCode() |
144 | 147 | { |
@@ -146,7 +149,7 @@ discard block |
||
146 | 149 | } |
147 | 150 | |
148 | 151 | /** |
149 | - * @return mixed |
|
152 | + * @return string |
|
150 | 153 | */ |
151 | 154 | public function getCountry() |
152 | 155 | { |
@@ -154,7 +157,7 @@ discard block |
||
154 | 157 | } |
155 | 158 | |
156 | 159 | /** |
157 | - * @return mixed |
|
160 | + * @return string |
|
158 | 161 | */ |
159 | 162 | public function getPhone() |
160 | 163 | { |
@@ -162,7 +165,7 @@ discard block |
||
162 | 165 | } |
163 | 166 | |
164 | 167 | /** |
165 | - * @return mixed |
|
168 | + * @return string |
|
166 | 169 | */ |
167 | 170 | public function getFax() |
168 | 171 | { |
@@ -45,11 +45,17 @@ |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | |
48 | + /** |
|
49 | + * @param string $name |
|
50 | + */ |
|
48 | 51 | public function setTestName($name) |
49 | 52 | { |
50 | 53 | $this->testName = $name; |
51 | 54 | } |
52 | 55 | |
56 | + /** |
|
57 | + * @param string $status |
|
58 | + */ |
|
53 | 59 | public function setTestStatus($status) |
54 | 60 | { |
55 | 61 | $this->status = $status; |
@@ -91,6 +91,9 @@ |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | |
94 | + /** |
|
95 | + * @param string $textDomain |
|
96 | + */ |
|
94 | 97 | protected function translatePart($translate, $result, $textDomain, $locale) |
95 | 98 | { |
96 | 99 | $newResult = parent::translate($result, $textDomain, $locale); |
@@ -28,6 +28,10 @@ discard block |
||
28 | 28 | protected $logger; |
29 | 29 | |
30 | 30 | |
31 | + /** |
|
32 | + * @param string $by |
|
33 | + * @param string $selector |
|
34 | + */ |
|
31 | 35 | public function logFind($by, $selector) |
32 | 36 | { |
33 | 37 | if ($this->logger instanceof Logger) { |
@@ -94,6 +98,9 @@ discard block |
||
94 | 98 | return $element; |
95 | 99 | } |
96 | 100 | |
101 | + /** |
|
102 | + * @param string $selector |
|
103 | + */ |
|
97 | 104 | public function elementExists($selector, $by = 'byId') |
98 | 105 | { |
99 | 106 | try { |
@@ -24,6 +24,9 @@ |
||
24 | 24 | $this->by = $by; |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $name |
|
29 | + */ |
|
27 | 30 | public function __call($name, $arguments) |
28 | 31 | { |
29 | 32 | if (strpos($name, '::') > 0) { |