@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Magium\Magento\Navigators\Catalog; |
4 | 4 | |
5 | -use Magium\Magento\Navigators\BaseMenu; |
|
6 | 5 | use Magium\Magento\Themes\AbstractThemeConfiguration; |
7 | 6 | |
8 | 7 | abstract class AbstractDefaultProduct |
@@ -15,20 +15,20 @@ discard block |
||
15 | 15 | /** |
16 | 16 | * @var string The Xpath string that finds the base of the navigation menu |
17 | 17 | */ |
18 | - public $navigationBaseXPathSelector = '//nav[@id="nav"]/ol'; |
|
18 | + public $navigationBaseXPathSelector = '//nav[@id="nav"]/ol'; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * @var string The Xpath string that can be used iteratively to find child navigation nodes |
22 | 22 | */ |
23 | 23 | |
24 | - public $navigationChildXPathSelector = 'a[concat(" ",normalize-space(.)," ") = " %s "]/..'; |
|
24 | + public $navigationChildXPathSelector = 'a[concat(" ",normalize-space(.)," ") = " %s "]/..'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @var string A simple, default path to use for categories. |
28 | 28 | */ |
29 | 29 | |
30 | - public $navigationPathToSimpleProductCategory = '{{Accessories}}/{{Jewelry}}'; |
|
31 | - public $navigationPathToConfigurableProductCategory = '{{Men}}/{{Shirts}}'; |
|
30 | + public $navigationPathToSimpleProductCategory = '{{Accessories}}/{{Jewelry}}'; |
|
31 | + public $navigationPathToConfigurableProductCategory = '{{Men}}/{{Shirts}}'; |
|
32 | 32 | |
33 | 33 | public $defaultSimpleProductName = '{{Blue Horizons Bracelets}}'; |
34 | 34 | public $defaultConfigurableProductName = '{{Plaid Cotton Shirt}}'; |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * @var string Xpath to add a Simple product to the cart from the product's page |
38 | 38 | */ |
39 | 39 | |
40 | - public $addToCartXpath = '//button[@title="{{Add to Cart}}" and contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
40 | + public $addToCartXpath = '//button[@title="{{Add to Cart}}" and contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
41 | 41 | |
42 | 42 | /** |
43 | 43 | * @var string Xpath to add a Simple product to the cart from the category page |
@@ -49,16 +49,16 @@ discard block |
||
49 | 49 | * @var string Xpath to find a product's link on a category page. Used to navigate to the product from the category |
50 | 50 | */ |
51 | 51 | |
52 | - public $categoryProductPageXpath = '//h2[@class="product-name"]/descendant::a'; |
|
52 | + public $categoryProductPageXpath = '//h2[@class="product-name"]/descendant::a'; |
|
53 | 53 | |
54 | - public $categorySpecificProductPageXpath = '//h2[@class="product-name"]/descendant::a[.="%s"]'; |
|
54 | + public $categorySpecificProductPageXpath = '//h2[@class="product-name"]/descendant::a[.="%s"]'; |
|
55 | 55 | |
56 | 56 | |
57 | 57 | /** |
58 | 58 | * @var string Xpath used after a product has been added to the cart to verify that the product has been added to the cart |
59 | 59 | */ |
60 | 60 | |
61 | - public $addToCartSuccessXpath = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; |
|
61 | + public $addToCartSuccessXpath = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; |
|
62 | 62 | |
63 | 63 | /** |
64 | 64 | * @var string The base URL of the installation |
@@ -72,12 +72,12 @@ discard block |
||
72 | 72 | * @var array Instructions in an Xpath array syntax to get to the login page. |
73 | 73 | */ |
74 | 74 | |
75 | - public $navigateToCustomerPageInstructions = [ |
|
75 | + public $navigateToCustomerPageInstructions = [ |
|
76 | 76 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
77 | 77 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{My Account}}"]'] |
78 | 78 | ]; |
79 | 79 | |
80 | - public $cartNavigationInstructions = [ |
|
80 | + public $cartNavigationInstructions = [ |
|
81 | 81 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
82 | 82 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[contains(concat(" ",normalize-space(@class)," ")," top-link-cart ")]'] |
83 | 83 | ]; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * @var array Instructions in an Xpath array syntax to get to the start of the checkout page |
87 | 87 | */ |
88 | 88 | |
89 | - public $checkoutNavigationInstructions = [ |
|
89 | + public $checkoutNavigationInstructions = [ |
|
90 | 90 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="header-minicart"]/descendant::span[.="{{Cart}}"]'], |
91 | 91 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="minicart-actions"]/descendant::a[@title="{{Checkout}}"]'] |
92 | 92 | ]; |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
96 | 96 | */ |
97 | 97 | |
98 | - public $registrationNavigationInstructions = [ |
|
98 | + public $registrationNavigationInstructions = [ |
|
99 | 99 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
100 | 100 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{Register}}"]'] |
101 | 101 | ]; |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
105 | 105 | */ |
106 | 106 | |
107 | - public $logoutNavigationInstructions = [ |
|
107 | + public $logoutNavigationInstructions = [ |
|
108 | 108 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
109 | 109 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{Log Out}}"]'] |
110 | 110 | ]; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | public $productListOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; |
133 | 133 | public $productListPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; |
134 | 134 | public $productListWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; |
135 | - public $productListAddToCartLinkXpath = '/descendant::p[@class="action"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
135 | + public $productListAddToCartLinkXpath = '/descendant::p[@class="action"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
136 | 136 | |
137 | 137 | public $productGridBaseXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," products-grid ")]/li[%d]'; |
138 | 138 | public $productGridDescriptionXpath = '/*[.="no description in the grid view"]'; |
@@ -143,15 +143,15 @@ discard block |
||
143 | 143 | public $productGridOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; |
144 | 144 | public $productGridPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; |
145 | 145 | public $productGridWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; |
146 | - public $productGridAddToCartLinkXpath = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
146 | + public $productGridAddToCartLinkXpath = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
147 | 147 | |
148 | 148 | public $productCollectionViewModeXpath = '//p[@class="view-mode"]/strong'; |
149 | 149 | public $productCollectionSortByXpath = '//div[@class="sort-by"]/descendant::option[@selected]'; // We select using the div, not the title because the title may be translated |
150 | 150 | public $productCollectionShowCountXpath = '//div[@class="limiter"]/descendant::option[@selected]'; // dittos |
151 | - public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; |
|
151 | + public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; |
|
152 | 152 | public $productCollectionProductCountXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," pager ")]/descendant::p[contains(concat(" ",normalize-space(@class)," ")," amount ")]'; |
153 | 153 | |
154 | - public $layeredNavigationBaseXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; |
|
154 | + public $layeredNavigationBaseXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; |
|
155 | 155 | |
156 | 156 | public $searchInputXpath = '//input[@id="search"]'; |
157 | 157 | public $searchSubmitXpath = '//form[@id="search_mini_form"]/descendant::button[@title="Search"]'; |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | public $configurableProductLabelXpath = '//div[@id="product-options-wrapper"]/descendant::label'; |
165 | 165 | public $configurableSwatchSelectorXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]'; |
166 | 166 | public $configurableSwatchImgXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/descendant::img'; |
167 | - public $configurableSwatchNotAvailableXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/ancestor::li[contains(concat(" ",normalize-space(@class)," ")," not-available ")]'; |
|
167 | + public $configurableSwatchNotAvailableXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/ancestor::li[contains(concat(" ",normalize-space(@class)," ")," not-available ")]'; |
|
168 | 168 | |
169 | 169 | public $configurableProductOptionXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::option[starts-with(., "%s")]'; |
170 | 170 | |
@@ -173,17 +173,17 @@ discard block |
||
173 | 173 | public $breadCrumbMemberXpath = '/descendant::a[concat(" ",normalize-space(.)," ")=" {{%s}} "]'; |
174 | 174 | public $breadCrumbSelectorXpath = '/descendant::a[%d]'; |
175 | 175 | |
176 | - public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; |
|
176 | + public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; |
|
177 | 177 | |
178 | 178 | public $layeredNavigationFilterTypesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li'; |
179 | 179 | public $layeredNavigationSwatchFilterTypesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li'; |
180 | 180 | public $layeredNavigationFilterLinkXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li/descendant::a'; |
181 | - public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; |
|
181 | + public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; |
|
182 | 182 | |
183 | 183 | public $layeredNavigationSwatchAppliesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::ol[contains(concat(" ",normalize-space(@class)," ")," configurable-swatch-list ")]'; |
184 | 184 | public $layeredNavigationSwatchTitleAttribute = 'title'; |
185 | 185 | |
186 | - public $storeSwitcherInstructionsXpath = [ |
|
186 | + public $storeSwitcherInstructionsXpath = [ |
|
187 | 187 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//select[@id="select-language"]/descendant::option[contains(@value,"___store=%s")]'], |
188 | 188 | ]; |
189 | 189 |
@@ -23,16 +23,16 @@ discard block |
||
23 | 23 | // public $navigationChildXPathSelector1 = 'li/descendant::span[.="{{%s}}"]'; |
24 | 24 | public $navigationChildXPathSelector = 'a[concat(" ",normalize-space(.)," ") = " {{%s}} "]/..'; |
25 | 25 | |
26 | - public $adminPopupMessageContainerXpath = '//*[@id="message-popup-window"]'; |
|
27 | - public $adminPopupMessageCloseButtonXpath = '//*[@id="message-popup-window"]/descendant::*[@title="close"]'; |
|
26 | + public $adminPopupMessageContainerXpath = '//*[@id="message-popup-window"]'; |
|
27 | + public $adminPopupMessageCloseButtonXpath = '//*[@id="message-popup-window"]/descendant::*[@title="close"]'; |
|
28 | 28 | |
29 | - public $systemConfigTabsXpath = '//ul[@id="system_config_tabs"]/descendant::a[concat(" ",normalize-space(.)," ") = " {{%s}} "]'; |
|
30 | - public $systemConfigSectionToggleXpath = '//form[@id="config_edit_form"]/descendant::div[contains(concat(" ",normalize-space(@class)," ")," section-config ")]/descendant::a[.="{{%s}}"]'; |
|
31 | - public $systemConfigSectionDisplayCheckXpath = '//legend[.="{{%s}}"]/ancestor::fieldset'; |
|
32 | - public $systemConfigToggleEnableXpath = '//legend[.="{{%s}}"]/../descendant::td[concat(" ",normalize-space(.)," ") = " {{Enabled}} "]/../td/descendant::select/option[@value="%d"]'; |
|
29 | + public $systemConfigTabsXpath = '//ul[@id="system_config_tabs"]/descendant::a[concat(" ",normalize-space(.)," ") = " {{%s}} "]'; |
|
30 | + public $systemConfigSectionToggleXpath = '//form[@id="config_edit_form"]/descendant::div[contains(concat(" ",normalize-space(@class)," ")," section-config ")]/descendant::a[.="{{%s}}"]'; |
|
31 | + public $systemConfigSectionDisplayCheckXpath = '//legend[.="{{%s}}"]/ancestor::fieldset'; |
|
32 | + public $systemConfigToggleEnableXpath = '//legend[.="{{%s}}"]/../descendant::td[concat(" ",normalize-space(.)," ") = " {{Enabled}} "]/../td/descendant::select/option[@value="%d"]'; |
|
33 | 33 | |
34 | - public $xTreeRootXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," x-tree-root-ct ")]/div/li[contains(concat(" ",normalize-space(@class)," ")," x-tree-node ")]/div/a'; |
|
35 | - public $xTreeNamedRootXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," x-tree-root-ct ")]/div/li[contains(concat(" ",normalize-space(@class)," ")," x-tree-node ")]/div/a[contains(concat("---",normalize-space(.)), "---{{%s}} (")]'; |
|
34 | + public $xTreeRootXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," x-tree-root-ct ")]/div/li[contains(concat(" ",normalize-space(@class)," ")," x-tree-node ")]/div/a'; |
|
35 | + public $xTreeNamedRootXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," x-tree-root-ct ")]/div/li[contains(concat(" ",normalize-space(@class)," ")," x-tree-node ")]/div/a[contains(concat("---",normalize-space(.)), "---{{%s}} (")]'; |
|
36 | 36 | public $xTreeChildXpath = 'ul/li[contains(concat(" ",normalize-space(@class)," ")," x-tree-node ")]/div/a/span[contains(concat("---",normalize-space(.)), "---{{%s}} (")]/..'; |
37 | 37 | public $xTreeChildNodePrefixXpath = '/../..'; |
38 | 38 | public $xTreeChildNodeExpandPrefixXpath = '/../img[contains(concat(" ",normalize-space(@class)," ")," x-tree-ec-icon ")]'; |
@@ -41,12 +41,12 @@ discard block |
||
41 | 41 | |
42 | 42 | public $systemConfigSaveSuccessfulXpath = '//li[@class="success-msg"]/descendant::span[.="{{The configuration has been saved}}."]'; |
43 | 43 | |
44 | - public $testLoggedInAtBaseUrl = '//a[@class="active"]/span[.="{{Dashboard}}"]'; |
|
44 | + public $testLoggedInAtBaseUrl = '//a[@class="active"]/span[.="{{Dashboard}}"]'; |
|
45 | 45 | |
46 | 46 | public $tableButtonXpath = '//table[@class="actions"]/descendant::span[.="{{%s}}"]'; |
47 | 47 | |
48 | 48 | public $selectOrderXpath = '//table[@id="sales_order_grid_table"]/descendant::td[concat(" ",normalize-space(.)," ") = " %s "]/../td/a[.="{{View}}"]'; |
49 | - public $selectCustomerXpath = '//table[@id="customerGrid_table"]/descendant::td[concat(" ",normalize-space(.)," ") = " %s "]/../td/a[.="{{Edit}}"]'; |
|
49 | + public $selectCustomerXpath = '//table[@id="customerGrid_table"]/descendant::td[concat(" ",normalize-space(.)," ") = " %s "]/../td/a[.="{{Edit}}"]'; |
|
50 | 50 | |
51 | 51 | public $systemConfigSettingLabelXpath = '//td[@class="label"]/label[.=" {{%s}}"]'; |
52 | 52 | |
@@ -57,12 +57,12 @@ discard block |
||
57 | 57 | |
58 | 58 | public $guaranteedPageLoadedElementDisplayedXpath = '//div[@class="footer"]'; |
59 | 59 | |
60 | - public $successfulActionXpath = '//li[@class="success-msg"]'; |
|
60 | + public $successfulActionXpath = '//li[@class="success-msg"]'; |
|
61 | 61 | public $errorActionXpath = '//li[@class="error-msg"]'; |
62 | 62 | |
63 | 63 | public $shippingCarrierXpath = '//select[@name="tracking[%d][carrier_code]"]'; |
64 | - public $shippingTitleXpath = '//input[@name="tracking[%d][title]"]'; |
|
65 | - public $shippingTrackingNumberXpath = '//input[@name="tracking[%d][number]"]'; |
|
64 | + public $shippingTitleXpath = '//input[@name="tracking[%d][title]"]'; |
|
65 | + public $shippingTrackingNumberXpath = '//input[@name="tracking[%d][number]"]'; |
|
66 | 66 | |
67 | 67 | public $formButtonXpath = '//div[@class="content-header"]/p[@class="form-buttons"]/descendant::span[.="{{%s}}"]'; |
68 | 68 | |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | * @var string |
244 | 244 | */ |
245 | 245 | |
246 | - public $searchButtonText = '{{Search}}'; |
|
246 | + public $searchButtonText = '{{Search}}'; |
|
247 | 247 | |
248 | 248 | /** |
249 | 249 | * @return Translator |
@@ -72,31 +72,31 @@ discard block |
||
72 | 72 | * @var array Instructions in an Xpath array syntax to get to the login page. |
73 | 73 | */ |
74 | 74 | |
75 | - public $navigateToCustomerPageInstructions = []; |
|
75 | + public $navigateToCustomerPageInstructions = []; |
|
76 | 76 | |
77 | 77 | /** |
78 | 78 | * @var array Instructions in an Xpath array syntax to get to the shopping cart |
79 | 79 | */ |
80 | 80 | |
81 | - public $cartNavigationInstructions = []; |
|
81 | + public $cartNavigationInstructions = []; |
|
82 | 82 | |
83 | 83 | /** |
84 | 84 | * @var array Instructions in an Xpath array syntax to get to the start of the checkout page |
85 | 85 | */ |
86 | 86 | |
87 | - public $checkoutNavigationInstructions = []; |
|
87 | + public $checkoutNavigationInstructions = []; |
|
88 | 88 | |
89 | 89 | /** |
90 | 90 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
91 | 91 | */ |
92 | 92 | |
93 | - public $registrationNavigationInstructions = []; |
|
93 | + public $registrationNavigationInstructions = []; |
|
94 | 94 | |
95 | 95 | /** |
96 | 96 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
97 | 97 | */ |
98 | 98 | |
99 | - public $logoutNavigationInstructions = []; |
|
99 | + public $logoutNavigationInstructions = []; |
|
100 | 100 | |
101 | 101 | public $registerFirstNameXpath; |
102 | 102 | public $registerLastNameXpath; |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | |
322 | 322 | public function getBreadCrumbMemberXpath($name) |
323 | 323 | { |
324 | - return $this->getBreadCrumbXpath() . $this->translatePlaceholders(sprintf($this->breadCrumbMemberXpath, $name)); |
|
324 | + return $this->getBreadCrumbXpath().$this->translatePlaceholders(sprintf($this->breadCrumbMemberXpath, $name)); |
|
325 | 325 | } |
326 | 326 | |
327 | 327 | /** |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | */ |
330 | 330 | public function getBreadCrumbSelectorXpath($test) |
331 | 331 | { |
332 | - return $this->getBreadCrumbXpath() . sprintf($this->breadCrumbSelectorXpath, $test); |
|
332 | + return $this->getBreadCrumbXpath().sprintf($this->breadCrumbSelectorXpath, $test); |
|
333 | 333 | } |
334 | 334 | |
335 | 335 | |
@@ -569,7 +569,7 @@ discard block |
||
569 | 569 | */ |
570 | 570 | public function getProductListAddToCartLinkXpath($count) |
571 | 571 | { |
572 | - return sprintf($this->productListBaseXpath . $this->productListAddToCartLinkXpath, $count); |
|
572 | + return sprintf($this->productListBaseXpath.$this->productListAddToCartLinkXpath, $count); |
|
573 | 573 | } |
574 | 574 | |
575 | 575 | /** |
@@ -577,7 +577,7 @@ discard block |
||
577 | 577 | */ |
578 | 578 | public function getProductGridAddToCartLinkXpath($count) |
579 | 579 | { |
580 | - return sprintf($this->productGridBaseXpath . $this->productGridAddToCartLinkXpath, $count); |
|
580 | + return sprintf($this->productGridBaseXpath.$this->productGridAddToCartLinkXpath, $count); |
|
581 | 581 | } |
582 | 582 | |
583 | 583 | /** |
@@ -585,7 +585,7 @@ discard block |
||
585 | 585 | */ |
586 | 586 | public function getProductListDescriptionXpath($count) |
587 | 587 | { |
588 | - return sprintf($this->productListBaseXpath . $this->productListDescriptionXpath, $count); |
|
588 | + return sprintf($this->productListBaseXpath.$this->productListDescriptionXpath, $count); |
|
589 | 589 | } |
590 | 590 | |
591 | 591 | /** |
@@ -593,7 +593,7 @@ discard block |
||
593 | 593 | */ |
594 | 594 | public function getProductListTitleXpath($count) |
595 | 595 | { |
596 | - return sprintf($this->productListBaseXpath . $this->productListTitleXpath, $count); |
|
596 | + return sprintf($this->productListBaseXpath.$this->productListTitleXpath, $count); |
|
597 | 597 | } |
598 | 598 | |
599 | 599 | /** |
@@ -601,7 +601,7 @@ discard block |
||
601 | 601 | */ |
602 | 602 | public function getProductListCompareLinkXpath($count) |
603 | 603 | { |
604 | - return sprintf($this->productListBaseXpath . $this->productListCompareLinkXpath, $count); |
|
604 | + return sprintf($this->productListBaseXpath.$this->productListCompareLinkXpath, $count); |
|
605 | 605 | } |
606 | 606 | |
607 | 607 | /** |
@@ -609,7 +609,7 @@ discard block |
||
609 | 609 | */ |
610 | 610 | public function getProductListImageXpath($count) |
611 | 611 | { |
612 | - return sprintf($this->productListBaseXpath . $this->productListImageXpath, $count); |
|
612 | + return sprintf($this->productListBaseXpath.$this->productListImageXpath, $count); |
|
613 | 613 | } |
614 | 614 | |
615 | 615 | /** |
@@ -617,7 +617,7 @@ discard block |
||
617 | 617 | */ |
618 | 618 | public function getProductListLinkXpath($count) |
619 | 619 | { |
620 | - return sprintf($this->productListBaseXpath . $this->productListLinkXpath, $count); |
|
620 | + return sprintf($this->productListBaseXpath.$this->productListLinkXpath, $count); |
|
621 | 621 | } |
622 | 622 | |
623 | 623 | /** |
@@ -625,7 +625,7 @@ discard block |
||
625 | 625 | */ |
626 | 626 | public function getProductListOriginalPriceXpath($count) |
627 | 627 | { |
628 | - return sprintf($this->productListBaseXpath . $this->productListOriginalPriceXpath, $count); |
|
628 | + return sprintf($this->productListBaseXpath.$this->productListOriginalPriceXpath, $count); |
|
629 | 629 | } |
630 | 630 | |
631 | 631 | /** |
@@ -633,7 +633,7 @@ discard block |
||
633 | 633 | */ |
634 | 634 | public function getProductListPriceXpath($count) |
635 | 635 | { |
636 | - return sprintf($this->productListBaseXpath . $this->productListPriceXpath, $count); |
|
636 | + return sprintf($this->productListBaseXpath.$this->productListPriceXpath, $count); |
|
637 | 637 | } |
638 | 638 | |
639 | 639 | /** |
@@ -641,7 +641,7 @@ discard block |
||
641 | 641 | */ |
642 | 642 | public function getProductListWishlistLinkXpath($count) |
643 | 643 | { |
644 | - return sprintf($this->productListBaseXpath . $this->productListWishlistLinkXpath, $count); |
|
644 | + return sprintf($this->productListBaseXpath.$this->productListWishlistLinkXpath, $count); |
|
645 | 645 | } |
646 | 646 | |
647 | 647 | /** |
@@ -649,7 +649,7 @@ discard block |
||
649 | 649 | */ |
650 | 650 | public function getProductGridDescriptionXpath($count) |
651 | 651 | { |
652 | - return sprintf($this->productGridBaseXpath . $this->productGridDescriptionXpath, $count); |
|
652 | + return sprintf($this->productGridBaseXpath.$this->productGridDescriptionXpath, $count); |
|
653 | 653 | } |
654 | 654 | |
655 | 655 | /** |
@@ -657,7 +657,7 @@ discard block |
||
657 | 657 | */ |
658 | 658 | public function getProductGridTitleXpath($count) |
659 | 659 | { |
660 | - return sprintf($this->productGridBaseXpath . $this->productGridTitleXpath, $count); |
|
660 | + return sprintf($this->productGridBaseXpath.$this->productGridTitleXpath, $count); |
|
661 | 661 | } |
662 | 662 | |
663 | 663 | /** |
@@ -665,7 +665,7 @@ discard block |
||
665 | 665 | */ |
666 | 666 | public function getProductGridCompareLinkXpath($count) |
667 | 667 | { |
668 | - return sprintf($this->productGridBaseXpath . $this->productGridCompareLinkXpath, $count); |
|
668 | + return sprintf($this->productGridBaseXpath.$this->productGridCompareLinkXpath, $count); |
|
669 | 669 | } |
670 | 670 | |
671 | 671 | /** |
@@ -673,7 +673,7 @@ discard block |
||
673 | 673 | */ |
674 | 674 | public function getProductGridImageXpath($count) |
675 | 675 | { |
676 | - return sprintf($this->productGridBaseXpath . $this->productGridImageXpath, $count); |
|
676 | + return sprintf($this->productGridBaseXpath.$this->productGridImageXpath, $count); |
|
677 | 677 | } |
678 | 678 | |
679 | 679 | /** |
@@ -681,7 +681,7 @@ discard block |
||
681 | 681 | */ |
682 | 682 | public function getProductGridLinkXpath($count) |
683 | 683 | { |
684 | - return sprintf($this->productGridBaseXpath . $this->productGridLinkXpath, $count); |
|
684 | + return sprintf($this->productGridBaseXpath.$this->productGridLinkXpath, $count); |
|
685 | 685 | } |
686 | 686 | |
687 | 687 | /** |
@@ -689,7 +689,7 @@ discard block |
||
689 | 689 | */ |
690 | 690 | public function getProductGridOriginalPriceXpath($count) |
691 | 691 | { |
692 | - return sprintf($this->productGridBaseXpath . $this->productGridOriginalPriceXpath, $count); |
|
692 | + return sprintf($this->productGridBaseXpath.$this->productGridOriginalPriceXpath, $count); |
|
693 | 693 | } |
694 | 694 | |
695 | 695 | /** |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | */ |
698 | 698 | public function getProductGridPriceXpath($count) |
699 | 699 | { |
700 | - return sprintf($this->productGridBaseXpath . $this->productGridPriceXpath, $count); |
|
700 | + return sprintf($this->productGridBaseXpath.$this->productGridPriceXpath, $count); |
|
701 | 701 | } |
702 | 702 | |
703 | 703 | /** |
@@ -705,7 +705,7 @@ discard block |
||
705 | 705 | */ |
706 | 706 | public function getProductGridWishlistLinkXpath($count) |
707 | 707 | { |
708 | - return sprintf($this->productGridBaseXpath . $this->productGridWishlistLinkXpath, $count); |
|
708 | + return sprintf($this->productGridBaseXpath.$this->productGridWishlistLinkXpath, $count); |
|
709 | 709 | } |
710 | 710 | |
711 | 711 | /** |
@@ -734,7 +734,7 @@ discard block |
||
734 | 734 | */ |
735 | 735 | public function getLogoutSuccessXpath() |
736 | 736 | { |
737 | - return$this->translatePlaceholders( $this->logoutSuccessXpath); |
|
737 | + return$this->translatePlaceholders($this->logoutSuccessXpath); |
|
738 | 738 | } |
739 | 739 | |
740 | 740 | /** |
@@ -15,20 +15,20 @@ discard block |
||
15 | 15 | /** |
16 | 16 | * @var string The Xpath string that finds the base of the navigation menu |
17 | 17 | */ |
18 | - public $navigationBaseXPathSelector = '//nav[@id="nav"]'; |
|
18 | + public $navigationBaseXPathSelector = '//nav[@id="nav"]'; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * @var string The Xpath string that can be used iteratively to find child navigation nodes |
22 | 22 | */ |
23 | 23 | |
24 | - public $navigationChildXPathSelector = 'a[concat(" ",normalize-space(.)," ") = " %s "]/..'; |
|
24 | + public $navigationChildXPathSelector = 'a[concat(" ",normalize-space(.)," ") = " %s "]/..'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @var string A simple, default path to use for categories. |
28 | 28 | */ |
29 | 29 | |
30 | - public $navigationPathToSimpleProductCategory = '{{Accessories}}/{{Jewelry}}'; |
|
31 | - public $navigationPathToConfigurableProductCategory = '{{Men}}/{{Shirts}}'; |
|
30 | + public $navigationPathToSimpleProductCategory = '{{Accessories}}/{{Jewelry}}'; |
|
31 | + public $navigationPathToConfigurableProductCategory = '{{Men}}/{{Shirts}}'; |
|
32 | 32 | |
33 | 33 | public $defaultSimpleProductName = '{{Blue Horizons Bracelets}}'; |
34 | 34 | public $defaultConfigurableProductName = '{{Plaid Cotton Shirt}}'; |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * @var string Xpath to add a Simple product to the cart from the product's page |
38 | 38 | */ |
39 | 39 | |
40 | - public $addToCartXpath = '//button[@title="{{Add to Cart}}" and contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
40 | + public $addToCartXpath = '//button[@title="{{Add to Cart}}" and contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
41 | 41 | |
42 | 42 | /** |
43 | 43 | * @var string Xpath to add a Simple product to the cart from the category page |
@@ -49,16 +49,16 @@ discard block |
||
49 | 49 | * @var string Xpath to find a product's link on a category page. Used to navigate to the product from the category |
50 | 50 | */ |
51 | 51 | |
52 | - public $categoryProductPageXpath = '//h2[@class="product-name"]/descendant::a'; |
|
52 | + public $categoryProductPageXpath = '//h2[@class="product-name"]/descendant::a'; |
|
53 | 53 | |
54 | - public $categorySpecificProductPageXpath = '//h2[@class="product-name"]/descendant::a[.="%s"]'; |
|
54 | + public $categorySpecificProductPageXpath = '//h2[@class="product-name"]/descendant::a[.="%s"]'; |
|
55 | 55 | |
56 | 56 | |
57 | 57 | /** |
58 | 58 | * @var string Xpath used after a product has been added to the cart to verify that the product has been added to the cart |
59 | 59 | */ |
60 | 60 | |
61 | - public $addToCartSuccessXpath = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; |
|
61 | + public $addToCartSuccessXpath = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; |
|
62 | 62 | |
63 | 63 | /** |
64 | 64 | * @var string The base URL of the installation |
@@ -72,12 +72,12 @@ discard block |
||
72 | 72 | * @var array Instructions in an Xpath array syntax to get to the login page. |
73 | 73 | */ |
74 | 74 | |
75 | - public $navigateToCustomerPageInstructions = [ |
|
75 | + public $navigateToCustomerPageInstructions = [ |
|
76 | 76 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
77 | 77 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{My Account}}"]'] |
78 | 78 | ]; |
79 | 79 | |
80 | - public $cartNavigationInstructions = [ |
|
80 | + public $cartNavigationInstructions = [ |
|
81 | 81 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
82 | 82 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[contains(concat(" ",normalize-space(@class)," ")," top-link-cart ")]'] |
83 | 83 | ]; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * @var array Instructions in an Xpath array syntax to get to the start of the checkout page |
87 | 87 | */ |
88 | 88 | |
89 | - public $checkoutNavigationInstructions = [ |
|
89 | + public $checkoutNavigationInstructions = [ |
|
90 | 90 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="header-minicart"]/descendant::span[.="{{Cart}}"]'], |
91 | 91 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="minicart-actions"]/descendant::a[@title="{{Checkout}}"]'] |
92 | 92 | ]; |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
96 | 96 | */ |
97 | 97 | |
98 | - public $registrationNavigationInstructions = [ |
|
98 | + public $registrationNavigationInstructions = [ |
|
99 | 99 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
100 | 100 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{Register}}"]'] |
101 | 101 | ]; |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
105 | 105 | */ |
106 | 106 | |
107 | - public $logoutNavigationInstructions = [ |
|
107 | + public $logoutNavigationInstructions = [ |
|
108 | 108 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
109 | 109 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{Log Out}}"]'] |
110 | 110 | ]; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | public $productListOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; |
133 | 133 | public $productListPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; |
134 | 134 | public $productListWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; |
135 | - public $productListAddToCartLinkXpath = '/descendant::p[@class="action"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
135 | + public $productListAddToCartLinkXpath = '/descendant::p[@class="action"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
136 | 136 | |
137 | 137 | public $productGridBaseXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," products-grid ")]/li[%d]'; |
138 | 138 | public $productGridDescriptionXpath = '/*[.="no description in the grid view"]'; |
@@ -143,15 +143,15 @@ discard block |
||
143 | 143 | public $productGridOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; |
144 | 144 | public $productGridPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; |
145 | 145 | public $productGridWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; |
146 | - public $productGridAddToCartLinkXpath = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
146 | + public $productGridAddToCartLinkXpath = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
147 | 147 | |
148 | 148 | public $productCollectionViewModeXpath = '//p[@class="view-mode"]/strong'; |
149 | 149 | public $productCollectionSortByXpath = '//div[@class="sort-by"]/descendant::option[@selected]'; // We select using the div, not the title because the title may be translated |
150 | 150 | public $productCollectionShowCountXpath = '//div[@class="limiter"]/descendant::option[@selected]'; // dittos |
151 | - public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; |
|
151 | + public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; |
|
152 | 152 | public $productCollectionProductCountXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," pager ")]/descendant::p[contains(concat(" ",normalize-space(@class)," ")," amount ")]'; |
153 | 153 | |
154 | - public $layeredNavigationBaseXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; |
|
154 | + public $layeredNavigationBaseXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; |
|
155 | 155 | |
156 | 156 | public $searchInputXpath = '//input[@id="search"]'; |
157 | 157 | public $searchSubmitXpath = '//form[@id="search_mini_form"]/descendant::button[@title="Search"]'; |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | public $configurableProductLabelXpath = '//div[@id="product-options-wrapper"]/descendant::label'; |
165 | 165 | public $configurableSwatchSelectorXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]'; |
166 | 166 | public $configurableSwatchImgXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/descendant::img'; |
167 | - public $configurableSwatchNotAvailableXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/ancestor::li[contains(concat(" ",normalize-space(@class)," ")," not-available ")]'; |
|
167 | + public $configurableSwatchNotAvailableXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/ancestor::li[contains(concat(" ",normalize-space(@class)," ")," not-available ")]'; |
|
168 | 168 | |
169 | 169 | public $configurableProductOptionXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::option[starts-with(., "%s")]'; |
170 | 170 | |
@@ -173,16 +173,16 @@ discard block |
||
173 | 173 | public $breadCrumbMemberXpath = '/descendant::a[concat(" ",normalize-space(.)," ")=" {{%s}} "]'; |
174 | 174 | public $breadCrumbSelectorXpath = '/descendant::a[%d]'; |
175 | 175 | |
176 | - public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; |
|
176 | + public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; |
|
177 | 177 | |
178 | 178 | public $layeredNavigationFilterTypesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li'; |
179 | 179 | public $layeredNavigationFilterLinkXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li/descendant::a'; |
180 | - public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; |
|
180 | + public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; |
|
181 | 181 | public $layeredNavigationSwatchFilterTypesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li'; |
182 | 182 | public $layeredNavigationSwatchAppliesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::ol[contains(concat(" ",normalize-space(@class)," ")," configurable-swatch-list ")]'; |
183 | 183 | public $layeredNavigationSwatchTitleAttribute = 'title'; |
184 | 184 | |
185 | - public $storeSwitcherInstructionsXpath = [ |
|
185 | + public $storeSwitcherInstructionsXpath = [ |
|
186 | 186 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//select[@id="select-language"]/descendant::option[contains(@value,"___store=%s")]'], |
187 | 187 | ]; |
188 | 188 |
@@ -7,26 +7,26 @@ discard block |
||
7 | 7 | class ThemeConfiguration extends AbstractThemeConfiguration |
8 | 8 | { |
9 | 9 | |
10 | - public $accountNavigationXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-account ")]/descendant::a[.="%s"]'; |
|
10 | + public $accountNavigationXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-account ")]/descendant::a[.="%s"]'; |
|
11 | 11 | public $accountSectionHeaderXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," col-main ")]/descendant::h1[.="%s"]'; |
12 | 12 | |
13 | - public $orderPageName = '{{My Orders}}'; |
|
13 | + public $orderPageName = '{{My Orders}}'; |
|
14 | 14 | |
15 | 15 | public $viewOrderLinkXpath = '//td[@class="number" and .="%s"]/../td/descendant::a[.="{{View Order}}"]'; |
16 | 16 | |
17 | - public $orderPageTitleContainsText = '{{Order}} #'; |
|
17 | + public $orderPageTitleContainsText = '{{Order}} #'; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @var string Xpath for the customer email form element |
21 | 21 | */ |
22 | 22 | |
23 | - public $loginUsernameField = '//input[@type="email" and @id="email"]'; |
|
23 | + public $loginUsernameField = '//input[@type="email" and @id="email"]'; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * @var string Xpath for the customer password form element |
27 | 27 | */ |
28 | 28 | |
29 | - public $loginPasswordField = '//input[@type="password" and @id="pass"]'; |
|
29 | + public $loginPasswordField = '//input[@type="password" and @id="pass"]'; |
|
30 | 30 | |
31 | 31 | |
32 | 32 | /** |
@@ -41,19 +41,19 @@ discard block |
||
41 | 41 | public $orderShippingMethod = '//h2[.="{{Shipping Method}}"]/../../descendant::div[contains(concat(" ",normalize-space(@class)," ")," box-content ")]'; |
42 | 42 | public $orderPaymentMethod = '//h2[.="{{Payment Method}}"]/../../descendant::div[contains(concat(" ",normalize-space(@class)," ")," box-content ")]'; |
43 | 43 | |
44 | - public $orderItemNameXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::h3[contains(concat(" ",normalize-space(@class)," ")," product-name ")]'; |
|
44 | + public $orderItemNameXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::h3[contains(concat(" ",normalize-space(@class)," ")," product-name ")]'; |
|
45 | 45 | public $orderItemSkuXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::td[@data-rwd-label="SKU"]'; |
46 | - public $orderItemPriceXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::td[@data-rwd-label="Price"]/descendant::span[@class="price"]'; |
|
46 | + public $orderItemPriceXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::td[@data-rwd-label="Price"]/descendant::span[@class="price"]'; |
|
47 | 47 | public $orderItemQtyXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::td[@data-rwd-label="Qty"]'; |
48 | 48 | |
49 | 49 | public $orderItemQtyOrderedRegex = '/{{Ordered}}:\s+(\d+)/'; |
50 | 50 | public $orderItemQtyShippedRegex = '/{{Shipped}}:\s+(\d+)/'; |
51 | 51 | |
52 | - public $orderItemSubtotalXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::td[@data-rwd-label="Subtotal"]/descendant::span[@class="price"]'; |
|
52 | + public $orderItemSubtotalXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::td[@data-rwd-label="Subtotal"]/descendant::span[@class="price"]'; |
|
53 | 53 | |
54 | 54 | public $orderSubtotalXpath = '//table[@id="my-orders-table"]/descendant::tr[contains(concat(" ",normalize-space(@class)," ")," subtotal ")]/td[2]/span[@class="price"]'; |
55 | 55 | public $orderShippingAndHandlingXpath = '//table[@id="my-orders-table"]/descendant::tr[contains(concat(" ",normalize-space(@class)," ")," shipping ")]/td[2]/span[@class="price"]'; |
56 | - public $orderTaxXpath = '//table[@id="my-orders-table"]/descendant::td[concat(" ",normalize-space(.)," ") = " {{Tax}} "]/following-sibling::td[1]/span[@class="price"]'; |
|
56 | + public $orderTaxXpath = '//table[@id="my-orders-table"]/descendant::td[concat(" ",normalize-space(.)," ") = " {{Tax}} "]/following-sibling::td[1]/span[@class="price"]'; |
|
57 | 57 | public $orderGrandTotalXpath = '//table[@id="my-orders-table"]/descendant::tr[contains(concat(" ",normalize-space(@class)," ")," grand_total ")]/td[2]/descendant::span[@class="price"]'; |
58 | 58 | |
59 | 59 | public $orderDateXpath = '//p[@class="order-date"]'; |
@@ -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); |
@@ -569,7 +569,7 @@ discard block |
||
569 | 569 | */ |
570 | 570 | public function getBillingAddressXpath() |
571 | 571 | { |
572 | - return$this->translatePlaceholders( $this->billingAddressXpath); |
|
572 | + return$this->translatePlaceholders($this->billingAddressXpath); |
|
573 | 573 | } |
574 | 574 | |
575 | 575 | /** |
@@ -677,7 +677,7 @@ discard block |
||
677 | 677 | */ |
678 | 678 | public function getCartSummaryCheckoutProductLoopPriceXpath($itemCount) |
679 | 679 | { |
680 | - $return = sprintf($this->cartSummaryCheckoutProductLoopPriceXpath , $itemCount); |
|
680 | + $return = sprintf($this->cartSummaryCheckoutProductLoopPriceXpath, $itemCount); |
|
681 | 681 | return $this->translatePlaceholders($return); |
682 | 682 | } |
683 | 683 | |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | */ |
687 | 687 | public function getCartSummaryCheckoutProductLoopNameXpath($itemCount) |
688 | 688 | { |
689 | - $return = sprintf($this->cartSummaryCheckoutProductLoopNameXpath , $itemCount); |
|
689 | + $return = sprintf($this->cartSummaryCheckoutProductLoopNameXpath, $itemCount); |
|
690 | 690 | return $this->translatePlaceholders($return); |
691 | 691 | } |
692 | 692 | |
@@ -695,7 +695,7 @@ discard block |
||
695 | 695 | */ |
696 | 696 | public function getCartSummaryCheckoutProductLoopQtyXpath($itemCount) |
697 | 697 | { |
698 | - $return = sprintf($this->cartSummaryCheckoutProductLoopQtyXpath , $itemCount); |
|
698 | + $return = sprintf($this->cartSummaryCheckoutProductLoopQtyXpath, $itemCount); |
|
699 | 699 | return $this->translatePlaceholders($return); |
700 | 700 | } |
701 | 701 | |
@@ -704,7 +704,7 @@ discard block |
||
704 | 704 | */ |
705 | 705 | public function getCartSummaryCheckoutProductLoopSubtotalXpath($itemCount) |
706 | 706 | { |
707 | - $return = sprintf($this->cartSummaryCheckoutProductLoopSubtotalXpath , $itemCount); |
|
707 | + $return = sprintf($this->cartSummaryCheckoutProductLoopSubtotalXpath, $itemCount); |
|
708 | 708 | return $this->translatePlaceholders($return); |
709 | 709 | } |
710 | 710 |
@@ -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) |
@@ -15,23 +15,23 @@ discard block |
||
15 | 15 | /** |
16 | 16 | * @var string The Xpath string that finds the base of the navigation menu |
17 | 17 | */ |
18 | - public $navigationBaseXPathSelector = '//ul[@id="nav"]'; |
|
18 | + public $navigationBaseXPathSelector = '//ul[@id="nav"]'; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * @var string The Xpath string that can be used iteratively to find child navigation nodes |
22 | 22 | */ |
23 | 23 | |
24 | - public $navigationChildXPathSelector = 'a[concat(" ",normalize-space(.)," ") = " %s "]/..'; |
|
24 | + public $navigationChildXPathSelector = 'a[concat(" ",normalize-space(.)," ") = " %s "]/..'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @var string A simple, default path to use for categories. |
28 | 28 | */ |
29 | 29 | |
30 | - public $navigationPathToSimpleProductCategory = '{{Electronics}}/{{Cell Phones}}'; |
|
30 | + public $navigationPathToSimpleProductCategory = '{{Electronics}}/{{Cell Phones}}'; |
|
31 | 31 | |
32 | 32 | public $defaultSimpleProductName = '{{Nokia 2610 Phone}}'; |
33 | 33 | |
34 | - public $navigationPathToConfigurableProductCategory = '{{Apparel}}/{{Shirts}}'; |
|
34 | + public $navigationPathToConfigurableProductCategory = '{{Apparel}}/{{Shirts}}'; |
|
35 | 35 | |
36 | 36 | public $defaultConfigurableProductName = '{{Zolof The Rock And Roll Destroyer: LOL Cat T-shirt}}'; |
37 | 37 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * @var string Xpath to add a Simple product to the cart from the product's page |
40 | 40 | */ |
41 | 41 | |
42 | - public $addToCartXpath = '//button[@title="{{Add to Cart}}" and contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
42 | + public $addToCartXpath = '//button[@title="{{Add to Cart}}" and contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * @var string Xpath to add a Simple product to the cart from the category page |
@@ -51,15 +51,15 @@ discard block |
||
51 | 51 | * @var string Xpath to find a product's link on a category page. Used to navigate to the product from the category |
52 | 52 | */ |
53 | 53 | |
54 | - public $categoryProductPageXpath = '//h2[@class="product-name"]/descendant::a'; |
|
54 | + public $categoryProductPageXpath = '//h2[@class="product-name"]/descendant::a'; |
|
55 | 55 | |
56 | - public $categorySpecificProductPageXpath = '//h2[@class="product-name"]/descendant::a[.="%s"]'; |
|
56 | + public $categorySpecificProductPageXpath = '//h2[@class="product-name"]/descendant::a[.="%s"]'; |
|
57 | 57 | |
58 | 58 | /** |
59 | 59 | * @var string Xpath used after a product has been added to the cart to verify that the product has been added to the cart |
60 | 60 | */ |
61 | 61 | |
62 | - public $addToCartSuccessXpath = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; |
|
62 | + public $addToCartSuccessXpath = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * @var string The base URL of the installation |
@@ -85,12 +85,12 @@ discard block |
||
85 | 85 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
86 | 86 | */ |
87 | 87 | |
88 | - public $logoutNavigationInstructions = [ |
|
88 | + public $logoutNavigationInstructions = [ |
|
89 | 89 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//ul[@class="links"]/descendant::a[.="{{Log Out}}"]'], |
90 | 90 | // [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{Log Out}}"]'] |
91 | 91 | ]; |
92 | 92 | |
93 | - public $cartNavigationInstructions = [ |
|
93 | + public $cartNavigationInstructions = [ |
|
94 | 94 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//a[@class="top-link-cart"]'] |
95 | 95 | ]; |
96 | 96 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * @var array Instructions in an Xpath array syntax to get to the login page. |
99 | 99 | */ |
100 | 100 | |
101 | - public $navigateToCustomerPageInstructions = [ |
|
101 | + public $navigateToCustomerPageInstructions = [ |
|
102 | 102 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//ul[@class="links"]/descendant::a[.="{{My Account}}"]'], |
103 | 103 | //[\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="My Account"]'] |
104 | 104 | ]; |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * @var array Instructions in an Xpath array syntax to get to the start of the checkout page |
108 | 108 | */ |
109 | 109 | |
110 | - public $checkoutNavigationInstructions = [ |
|
110 | + public $checkoutNavigationInstructions = [ |
|
111 | 111 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//ul[@class="links"]/descendant::a[@title="{{Checkout}}"]'], |
112 | 112 | // [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="minicart-actions"]/descendant::a[@title="Checkout"]'] |
113 | 113 | ]; |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
118 | 118 | */ |
119 | 119 | |
120 | - public $registrationNavigationInstructions = [ |
|
120 | + public $registrationNavigationInstructions = [ |
|
121 | 121 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//ul[@class="links"]/descendant::a[.="{{My Account}}"]'], |
122 | 122 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//button[@title="{{Create an Account}}"]'] |
123 | 123 | ]; |
@@ -138,10 +138,10 @@ discard block |
||
138 | 138 | public $cartSummaryCheckoutProductLoopQtyXpath = '(//table[@id="checkout-review-table"]/tbody/descendant::td[@data-rwd-label="Qty"])[%d]'; |
139 | 139 | public $cartSummaryCheckoutProductLoopSubtotalXpath = '(//table[@id="checkout-review-table"]/tbody/descendant::td[@data-rwd-label="Subtotal"])[%d]'; |
140 | 140 | |
141 | - public $cartSummaryCheckoutSubTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " Subtotal "]/../td[2]'; |
|
142 | - public $cartSummaryCheckoutTax = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " Tax "]/../td[2]'; |
|
143 | - public $cartSummaryCheckoutGrandTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " Grand Total "]/../td[2]'; |
|
144 | - public $cartSummaryCheckoutShippingTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[contains(concat(" ",normalize-space(.)," "), " Shipping & Handling (")]/../td[2]'; |
|
141 | + public $cartSummaryCheckoutSubTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " Subtotal "]/../td[2]'; |
|
142 | + public $cartSummaryCheckoutTax = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " Tax "]/../td[2]'; |
|
143 | + public $cartSummaryCheckoutGrandTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " Grand Total "]/../td[2]'; |
|
144 | + public $cartSummaryCheckoutShippingTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[contains(concat(" ",normalize-space(.)," "), " Shipping & Handling (")]/../td[2]'; |
|
145 | 145 | |
146 | 146 | public $breadCrumbXpath = '//div[@class="breadcrumbs"]'; |
147 | 147 | |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | public $productListOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; |
155 | 155 | public $productListPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; |
156 | 156 | public $productListWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; |
157 | - public $productListAddToCartLinkXpath = '/descendant::div[@class="product-shop"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
157 | + public $productListAddToCartLinkXpath = '/descendant::div[@class="product-shop"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
158 | 158 | |
159 | 159 | public $productGridBaseXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," products-grid ")]/li[%d]'; |
160 | 160 | public $productGridDescriptionXpath = '/*[.="no description in the grid view"]'; |
@@ -165,15 +165,15 @@ discard block |
||
165 | 165 | public $productGridOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; |
166 | 166 | public $productGridPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; |
167 | 167 | public $productGridWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; |
168 | - public $productGridAddToCartLinkXpath = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
168 | + public $productGridAddToCartLinkXpath = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
169 | 169 | |
170 | 170 | public $productCollectionViewModeXpath = '//p[@class="view-mode"]/strong'; |
171 | 171 | public $productCollectionSortByXpath = '//div[@class="sort-by"]/descendant::option[@selected]'; // We select using the div, not the title because the title may be translated |
172 | 172 | public $productCollectionShowCountXpath = '//div[@class="limiter"]/descendant::option[@selected]'; // dittos |
173 | - public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; |
|
173 | + public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; |
|
174 | 174 | public $productCollectionProductCountXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," pager ")]/descendant::p[contains(concat(" ",normalize-space(@class)," ")," amount ")]'; |
175 | 175 | |
176 | - public $layeredNavigationBaseXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; |
|
176 | + public $layeredNavigationBaseXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; |
|
177 | 177 | |
178 | 178 | public $searchInputXpath = '//input[@id="search"]'; |
179 | 179 | public $searchSubmitXpath = '//form[@id="search_mini_form"]/descendant::button[@title="Search"]'; |
@@ -192,11 +192,11 @@ discard block |
||
192 | 192 | public $breadCrumbMemberXpath = '/descendant::a[concat(" ",normalize-space(.)," ")=" {{%s}} "]'; |
193 | 193 | public $breadCrumbSelectorXpath = '/descendant::a[%d]'; |
194 | 194 | |
195 | - public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; |
|
195 | + public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; |
|
196 | 196 | |
197 | 197 | public $layeredNavigationFilterTypesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li'; |
198 | 198 | public $layeredNavigationFilterLinkXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li/descendant::a'; |
199 | - public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; |
|
199 | + public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; |
|
200 | 200 | |
201 | 201 | public $storeSwitcherInstructionsXpath = [ |
202 | 202 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//select[@id="select-language"]/descendant::option[contains(@href,"___store=%s"]'], |
@@ -8,20 +8,20 @@ discard block |
||
8 | 8 | class ThemeConfiguration extends AbstractThemeConfiguration |
9 | 9 | { |
10 | 10 | |
11 | - public $accountNavigationXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-account ")]/descendant::a[.="%s"]'; |
|
11 | + public $accountNavigationXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-account ")]/descendant::a[.="%s"]'; |
|
12 | 12 | public $accountSectionHeaderXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," col-main ")]/descendant::h1[.="%s"]'; |
13 | 13 | |
14 | - public $orderPageName = '{{My Orders}}'; |
|
14 | + public $orderPageName = '{{My Orders}}'; |
|
15 | 15 | |
16 | 16 | public $viewOrderLinkXpath = '//td[.="%s"]/../td/descendant::a[.="{{View Order}}"]'; |
17 | 17 | |
18 | - public $orderPageTitleContainsText = '{{Order}} #'; |
|
18 | + public $orderPageTitleContainsText = '{{Order}} #'; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
22 | 22 | */ |
23 | 23 | |
24 | - public $registrationNavigationInstructions = [ |
|
24 | + public $registrationNavigationInstructions = [ |
|
25 | 25 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="Account"]'], |
26 | 26 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="Register"]'] |
27 | 27 | ]; |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
31 | 31 | */ |
32 | 32 | |
33 | - public $logoutNavigationInstructions = [ |
|
33 | + public $logoutNavigationInstructions = [ |
|
34 | 34 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="Account"]'], |
35 | 35 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="Log Out"]'] |
36 | 36 | ]; |
@@ -49,13 +49,13 @@ discard block |
||
49 | 49 | * @var string Xpath for the customer email form element |
50 | 50 | */ |
51 | 51 | |
52 | - public $loginUsernameField = '//input[@type="text" and @id="email"]'; |
|
52 | + public $loginUsernameField = '//input[@type="text" and @id="email"]'; |
|
53 | 53 | |
54 | 54 | /** |
55 | 55 | * @var string Xpath for the customer password form element |
56 | 56 | */ |
57 | 57 | |
58 | - public $loginPasswordField = '//input[@type="password" and @id="pass"]'; |
|
58 | + public $loginPasswordField = '//input[@type="password" and @id="pass"]'; |
|
59 | 59 | |
60 | 60 | |
61 | 61 | /** |
@@ -70,19 +70,19 @@ discard block |
||
70 | 70 | public $orderShippingMethod = '//h2[.="{{Shipping Method}}"]/../../descendant::div[contains(concat(" ",normalize-space(@class)," ")," box-content ")]'; |
71 | 71 | public $orderPaymentMethod = '//h2[.="{{Payment Method}}"]/../../descendant::div[contains(concat(" ",normalize-space(@class)," ")," box-content ")]'; |
72 | 72 | |
73 | - public $orderItemNameXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::h3[contains(concat(" ",normalize-space(@class)," ")," product-name ")]'; |
|
73 | + public $orderItemNameXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::h3[contains(concat(" ",normalize-space(@class)," ")," product-name ")]'; |
|
74 | 74 | public $orderItemSkuXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::td[2]'; |
75 | - public $orderItemPriceXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::td[3]/descendant::span[@class="price"]'; |
|
75 | + public $orderItemPriceXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::td[3]/descendant::span[@class="price"]'; |
|
76 | 76 | public $orderItemQtyXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::td[4]'; |
77 | 77 | |
78 | 78 | public $orderItemQtyOrderedRegex = '/{{Ordered}}:\s+(\d+)/'; |
79 | 79 | public $orderItemQtyShippedRegex = '/{{Shipped}}:\s+(\d+)/'; |
80 | 80 | |
81 | - public $orderItemSubtotalXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::td[5]/descendant::span[@class="price"]'; |
|
81 | + public $orderItemSubtotalXpath = '//table[@id="my-orders-table"]/tbody/tr[%d]/descendant::td[5]/descendant::span[@class="price"]'; |
|
82 | 82 | |
83 | 83 | public $orderSubtotalXpath = '//table[@id="my-orders-table"]/descendant::tr[contains(concat(" ",normalize-space(@class)," ")," subtotal ")]/td[2]/span[@class="price"]'; |
84 | 84 | public $orderShippingAndHandlingXpath = '//table[@id="my-orders-table"]/descendant::tr[contains(concat(" ",normalize-space(@class)," ")," shipping ")]/td[2]/span[@class="price"]'; |
85 | - public $orderTaxXpath = '//table[@id="my-orders-table"]/descendant::td[concat(" ",normalize-space(.)," ") = " {{Tax}} "]/following-sibling::td[1]/span[@class="price"]'; |
|
85 | + public $orderTaxXpath = '//table[@id="my-orders-table"]/descendant::td[concat(" ",normalize-space(.)," ") = " {{Tax}} "]/following-sibling::td[1]/span[@class="price"]'; |
|
86 | 86 | public $orderGrandTotalXpath = '//table[@id="my-orders-table"]/descendant::tr[contains(concat(" ",normalize-space(@class)," ")," grand_total ")]/td[2]/descendant::span[@class="price"]'; |
87 | 87 | |
88 | 88 | public $orderDateXpath = '//p[@class="order-date"]'; |