@@ -57,7 +57,7 @@ |
||
57 | 57 | * * Tab/Section::name=Text Of Setting (will ensure that the correct section is navigated to, uses setting name (exact), not ID) |
58 | 58 | * * name=Text Of Setting (will not navigate, uses setting name (exact) not ID) |
59 | 59 | * |
60 | - * @param $identifier |
|
60 | + * @param string $identifier |
|
61 | 61 | * @param $value |
62 | 62 | * @throws \Magium\InvalidInstructionException |
63 | 63 | */ |
@@ -43,6 +43,9 @@ |
||
43 | 43 | return $this->messages; |
44 | 44 | } |
45 | 45 | |
46 | + /** |
|
47 | + * @param string $message |
|
48 | + */ |
|
46 | 49 | public function addMessage($message) |
47 | 50 | { |
48 | 51 | $this->messages[] = $message; |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param $nodePath |
30 | - * @return WebDriverElement |
|
30 | + * @return null|\Facebook\WebDriver\Remote\RemoteWebElement |
|
31 | 31 | */ |
32 | 32 | |
33 | 33 | public function getNode($nodePath) |
@@ -80,6 +80,9 @@ |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | |
83 | + /** |
|
84 | + * @param string $type |
|
85 | + */ |
|
83 | 86 | public function addFilterType($type) |
84 | 87 | { |
85 | 88 | $type = $this->filterTypeName($type); |
@@ -25,6 +25,10 @@ |
||
25 | 25 | return $this->products; |
26 | 26 | } |
27 | 27 | |
28 | + /** |
|
29 | + * @param integer $count |
|
30 | + * @param string $attribute |
|
31 | + */ |
|
28 | 32 | protected function getByXpath($type, $count, $attribute = null, $getElement = false) |
29 | 33 | { |
30 | 34 | $xpath = $this->getElementXpath($type, $count); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
34 | - * @param $label |
|
34 | + * @param string $label |
|
35 | 35 | * @return WebDriverElement |
36 | 36 | */ |
37 | 37 |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | |
130 | 130 | /** |
131 | - * @return mixed |
|
131 | + * @return string |
|
132 | 132 | */ |
133 | 133 | public function getTermsAndConditionsSelectorXpath($term) |
134 | 134 | { |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | } |
320 | 320 | |
321 | 321 | /** |
322 | - * @param string $shippinFirstNameXpath |
|
322 | + * @param string $shippingFirstNameXpath |
|
323 | 323 | */ |
324 | 324 | public function setShippingFirstNameXpath($shippingFirstNameXpath) |
325 | 325 | { |
@@ -423,6 +423,7 @@ discard block |
||
423 | 423 | } |
424 | 424 | |
425 | 425 | /** |
426 | + * @param string $region |
|
426 | 427 | * @return string |
427 | 428 | */ |
428 | 429 | public function getShippingRegionIdXpath($region) |
@@ -456,6 +457,7 @@ discard block |
||
456 | 457 | } |
457 | 458 | |
458 | 459 | /** |
460 | + * @param string $country |
|
459 | 461 | * @return string |
460 | 462 | */ |
461 | 463 | public function getShippingCountryIdXpath($country) |
@@ -536,6 +538,9 @@ discard block |
||
536 | 538 | $this->shippingContinueCompletedXpath = $shippingContinueCompletedXpath; |
537 | 539 | } |
538 | 540 | |
541 | + /** |
|
542 | + * @return string |
|
543 | + */ |
|
539 | 544 | public function getBillingContinueCompletedXpath() |
540 | 545 | { |
541 | 546 | return $this->translatePlaceholders($this->billingContinueCompletedXpath); |
@@ -608,6 +613,7 @@ discard block |
||
608 | 613 | } |
609 | 614 | |
610 | 615 | /** |
616 | + * @param string $region |
|
611 | 617 | * @return string |
612 | 618 | */ |
613 | 619 | public function getBillingRegionIdXpath($region) |
@@ -625,6 +631,7 @@ discard block |
||
625 | 631 | } |
626 | 632 | |
627 | 633 | /** |
634 | + * @param string $country |
|
628 | 635 | * @return string |
629 | 636 | */ |
630 | 637 | public function getBillingCountryIdXpath($country) |
@@ -692,6 +699,7 @@ discard block |
||
692 | 699 | |
693 | 700 | |
694 | 701 | /** |
702 | + * @param integer $itemCount |
|
695 | 703 | * @return string |
696 | 704 | */ |
697 | 705 | public function getCartSummaryCheckoutProductLoopPriceXpath($itemCount) |
@@ -701,6 +709,7 @@ discard block |
||
701 | 709 | } |
702 | 710 | |
703 | 711 | /** |
712 | + * @param integer $itemCount |
|
704 | 713 | * @return string |
705 | 714 | */ |
706 | 715 | public function getCartSummaryCheckoutProductLoopNameXpath($itemCount) |
@@ -710,6 +719,7 @@ discard block |
||
710 | 719 | } |
711 | 720 | |
712 | 721 | /** |
722 | + * @param integer $itemCount |
|
713 | 723 | * @return string |
714 | 724 | */ |
715 | 725 | public function getCartSummaryCheckoutProductLoopQtyXpath($itemCount) |
@@ -719,6 +729,7 @@ discard block |
||
719 | 729 | } |
720 | 730 | |
721 | 731 | /** |
732 | + * @param integer $itemCount |
|
722 | 733 | * @return string |
723 | 734 | */ |
724 | 735 | public function getCartSummaryCheckoutProductLoopSubtotalXpath($itemCount) |
@@ -144,6 +144,7 @@ discard block |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
147 | + * @param integer $count |
|
147 | 148 | * @return string |
148 | 149 | */ |
149 | 150 | public function getShippingCarrierXpath($count) |
@@ -153,6 +154,7 @@ discard block |
||
153 | 154 | } |
154 | 155 | |
155 | 156 | /** |
157 | + * @param integer $count |
|
156 | 158 | * @return string |
157 | 159 | */ |
158 | 160 | public function getShippingTitleXpath($count) |
@@ -162,6 +164,7 @@ discard block |
||
162 | 164 | } |
163 | 165 | |
164 | 166 | /** |
167 | + * @param integer $count |
|
165 | 168 | * @return string |
166 | 169 | */ |
167 | 170 | public function getShippingTrackingNumberXpath($count) |
@@ -300,6 +303,7 @@ discard block |
||
300 | 303 | } |
301 | 304 | |
302 | 305 | /** |
306 | + * @param string $label |
|
303 | 307 | * @return string |
304 | 308 | */ |
305 | 309 | public function getSystemConfigSettingLabelXpath($label) |
@@ -317,7 +321,7 @@ discard block |
||
317 | 321 | public $searchButtonText = '{{Search}}'; |
318 | 322 | |
319 | 323 | /** |
320 | - * @return Translator |
|
324 | + * @return \Magium\Util\Translator\Translator |
|
321 | 325 | */ |
322 | 326 | public function getTranslator() |
323 | 327 | { |
@@ -366,7 +370,7 @@ discard block |
||
366 | 370 | } |
367 | 371 | |
368 | 372 | /** |
369 | - * @return mixed |
|
373 | + * @return string |
|
370 | 374 | */ |
371 | 375 | public function getBaseUrl() |
372 | 376 | { |
@@ -456,6 +460,7 @@ discard block |
||
456 | 460 | } |
457 | 461 | |
458 | 462 | /** |
463 | + * @param integer $option |
|
459 | 464 | * @return string |
460 | 465 | */ |
461 | 466 | public function getSystemConfigToggleEnableXpath($section, $option) |