@@ -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); |
@@ -260,9 +260,9 @@ |
||
| 260 | 260 | return $this->translatePlaceholders($this->shippingMethodContinueButtonXpath); |
| 261 | 261 | } |
| 262 | 262 | |
| 263 | - /** |
|
| 264 | - * @return string |
|
| 265 | - */ |
|
| 263 | + /** |
|
| 264 | + * @return string |
|
| 265 | + */ |
|
| 266 | 266 | public function getPlaceOrderButtonXpath() |
| 267 | 267 | { |
| 268 | 268 | return $this->translatePlaceholders($this->placeOrderButtonXpath); |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | /** |
| 141 | - * @return mixed |
|
| 141 | + * @return string |
|
| 142 | 142 | */ |
| 143 | 143 | public function getTermsAndConditionsSelectorXpath($term) |
| 144 | 144 | { |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | } |
| 330 | 330 | |
| 331 | 331 | /** |
| 332 | - * @param string $shippinFirstNameXpath |
|
| 332 | + * @param string $shippingFirstNameXpath |
|
| 333 | 333 | */ |
| 334 | 334 | public function setShippingFirstNameXpath($shippingFirstNameXpath) |
| 335 | 335 | { |
@@ -433,6 +433,7 @@ discard block |
||
| 433 | 433 | } |
| 434 | 434 | |
| 435 | 435 | /** |
| 436 | + * @param string $region |
|
| 436 | 437 | * @return string |
| 437 | 438 | */ |
| 438 | 439 | public function getShippingRegionIdXpath($region) |
@@ -466,6 +467,7 @@ discard block |
||
| 466 | 467 | } |
| 467 | 468 | |
| 468 | 469 | /** |
| 470 | + * @param string $country |
|
| 469 | 471 | * @return string |
| 470 | 472 | */ |
| 471 | 473 | public function getShippingCountryIdXpath($country) |
@@ -546,6 +548,9 @@ discard block |
||
| 546 | 548 | $this->shippingContinueCompletedXpath = $shippingContinueCompletedXpath; |
| 547 | 549 | } |
| 548 | 550 | |
| 551 | + /** |
|
| 552 | + * @return string |
|
| 553 | + */ |
|
| 549 | 554 | public function getBillingContinueCompletedXpath() |
| 550 | 555 | { |
| 551 | 556 | return $this->translatePlaceholders($this->billingContinueCompletedXpath); |
@@ -618,6 +623,7 @@ discard block |
||
| 618 | 623 | } |
| 619 | 624 | |
| 620 | 625 | /** |
| 626 | + * @param string $region |
|
| 621 | 627 | * @return string |
| 622 | 628 | */ |
| 623 | 629 | public function getBillingRegionIdXpath($region) |
@@ -635,6 +641,7 @@ discard block |
||
| 635 | 641 | } |
| 636 | 642 | |
| 637 | 643 | /** |
| 644 | + * @param string $country |
|
| 638 | 645 | * @return string |
| 639 | 646 | */ |
| 640 | 647 | public function getBillingCountryIdXpath($country) |
@@ -702,6 +709,7 @@ discard block |
||
| 702 | 709 | |
| 703 | 710 | |
| 704 | 711 | /** |
| 712 | + * @param integer $itemCount |
|
| 705 | 713 | * @return string |
| 706 | 714 | */ |
| 707 | 715 | public function getCartSummaryCheckoutProductLoopPriceXpath($itemCount) |
@@ -711,6 +719,7 @@ discard block |
||
| 711 | 719 | } |
| 712 | 720 | |
| 713 | 721 | /** |
| 722 | + * @param integer $itemCount |
|
| 714 | 723 | * @return string |
| 715 | 724 | */ |
| 716 | 725 | public function getCartSummaryCheckoutProductLoopNameXpath($itemCount) |
@@ -720,6 +729,7 @@ discard block |
||
| 720 | 729 | } |
| 721 | 730 | |
| 722 | 731 | /** |
| 732 | + * @param integer $itemCount |
|
| 723 | 733 | * @return string |
| 724 | 734 | */ |
| 725 | 735 | public function getCartSummaryCheckoutProductLoopQtyXpath($itemCount) |
@@ -729,6 +739,7 @@ discard block |
||
| 729 | 739 | } |
| 730 | 740 | |
| 731 | 741 | /** |
| 742 | + * @param integer $itemCount |
|
| 732 | 743 | * @return string |
| 733 | 744 | */ |
| 734 | 745 | public function getCartSummaryCheckoutProductLoopSubtotalXpath($itemCount) |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | self::TYPE_VISA => '4007000000027', |
| 20 | 20 | self::TYPE_AMERICAN_EXPRESS => '370000000000002', |
| 21 | 21 | self::TYPE_DISCOVER => '6011000000000012', |
| 22 | - self::TYPE_MASTERCARD => '5424000000000015', |
|
| 22 | + self::TYPE_MASTERCARD => '5424000000000015', |
|
| 23 | 23 | self::TYPE_UNKNOWN => '0000000000000000' |
| 24 | 24 | ]; |
| 25 | 25 | |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | CustomerLogin $loginNavigator |
| 17 | 17 | |
| 18 | 18 | ) { |
| 19 | - $this->login = $login; |
|
| 19 | + $this->login = $login; |
|
| 20 | 20 | $this->loginNavigator = $loginNavigator; |
| 21 | 21 | } |
| 22 | 22 | |
@@ -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 | |