@@ -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"]'; |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | public $billingContinueButtonXpath = '//div[@id="billing-buttons-container"]/descendant::button[@onclick="billing.save()"]'; |
59 | 59 | |
60 | - public $billingContinueCompletedXpath = '//span[@id="billing-please-wait"]'; |
|
60 | + public $billingContinueCompletedXpath = '//span[@id="billing-please-wait"]'; |
|
61 | 61 | |
62 | 62 | public $billingNewAddressXpath = '//select[@id="billing-address-select"]/option[.="{{New Address}}"]'; |
63 | 63 | public $shippingNewAddressXpath = '//select[@id="shipping-address-select"]/option[.="{{New Address}}"]'; |
@@ -82,24 +82,24 @@ discard block |
||
82 | 82 | public $shippingTelephoneXpath = '//input[@id="shipping:telephone"]'; |
83 | 83 | public $shippingFaxXpath = '//input[@id="shipping:fax"]'; |
84 | 84 | public $shippingContinueButtonXpath = '//div[@id="shipping-buttons-container"]/descendant::button[@onclick="shipping.save()"]'; |
85 | - public $shippingContinueCompletedXpath = '//span[@id="shipping-please-wait"]'; |
|
86 | - public $shippingMethodContinueCompletedXpath = '//span[@id="shipping-method-please-wait"]'; |
|
85 | + public $shippingContinueCompletedXpath = '//span[@id="shipping-please-wait"]'; |
|
86 | + public $shippingMethodContinueCompletedXpath = '//span[@id="shipping-method-please-wait"]'; |
|
87 | 87 | |
88 | 88 | public $shippingMethodContinueButtonXpath = '//div[@id="shipping-method-buttons-container"]/descendant::button'; |
89 | - public $defaultShippingXpath = '//input[@name="shipping_method"]'; |
|
89 | + public $defaultShippingXpath = '//input[@name="shipping_method"]'; |
|
90 | 90 | |
91 | 91 | public $paymentMethodContinueCompleteXpath = '//span[@id="payment-please-wait"]'; |
92 | 92 | |
93 | 93 | public $paymentMethodContinueButtonXpath = '//div[@id="payment-buttons-container"]/descendant::button'; |
94 | 94 | |
95 | - public $placeOrderButtonXpath = '//div[@id="review-buttons-container"]/descendant::button[@title="{{Place Order}}"]'; |
|
95 | + public $placeOrderButtonXpath = '//div[@id="review-buttons-container"]/descendant::button[@title="{{Place Order}}"]'; |
|
96 | 96 | |
97 | 97 | public $orderReceivedCompleteXpath = '//h1[.="Your order has been received."]'; |
98 | 98 | |
99 | 99 | public $shippingMethodFormXpath = '//form[@id="co-shipping-method-form"]'; |
100 | 100 | |
101 | 101 | public $passwordInputXpath = '//input[@id="billing:customer_password"]'; |
102 | - public $confirmPasswordInputXpath = '//input[@id="billing:confirm_password"]'; |
|
102 | + public $confirmPasswordInputXpath = '//input[@id="billing:confirm_password"]'; |
|
103 | 103 | |
104 | 104 | /** |
105 | 105 | * This is a hard one. Each of the summary checkout products will be iterated over until they cannot be found. Having |
@@ -116,10 +116,10 @@ discard block |
||
116 | 116 | public $cartSummaryCheckoutProductLoopQtyXpath = '(//table[@id="checkout-review-table"]/tbody//td[3])[%d]'; |
117 | 117 | public $cartSummaryCheckoutProductLoopSubtotalXpath = '(//table[@id="checkout-review-table"]/tbody//td[4]/descendant::span[@class="cart-price"])[%d]'; |
118 | 118 | |
119 | - public $cartSummaryCheckoutSubTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Subtotal}} "]/../td[2]'; |
|
120 | - public $cartSummaryCheckoutTax = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Tax}} "]/../td[2]'; |
|
121 | - public $cartSummaryCheckoutGrandTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Grand Total}} "]/../td[2]'; |
|
122 | - public $cartSummaryCheckoutShippingTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[contains(concat(" ",normalize-space(.)," "), " {{Shipping & Handling}} (")]/../td[2]'; |
|
119 | + public $cartSummaryCheckoutSubTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Subtotal}} "]/../td[2]'; |
|
120 | + public $cartSummaryCheckoutTax = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Tax}} "]/../td[2]'; |
|
121 | + public $cartSummaryCheckoutGrandTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Grand Total}} "]/../td[2]'; |
|
122 | + public $cartSummaryCheckoutShippingTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[contains(concat(" ",normalize-space(.)," "), " {{Shipping & Handling}} (")]/../td[2]'; |
|
123 | 123 | |
124 | 124 | public $orderNumberExtractorXpath = '//p[contains(., "{{Your order # is:}}")]'; |
125 | 125 |
@@ -15,25 +15,25 @@ 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 | 34 | public $productPagePriceXpath = '(//form[@id="product_addtocart_form"]/descendant::span[contains(concat(" ",normalize-space(@class)," ")," regular-price ")]/span[contains(concat(" ",normalize-space(@class)," ")," price ")])[1]'; |
35 | 35 | |
36 | - public $navigationPathToConfigurableProductCategory = '{{Apparel}}/{{Shirts}}'; |
|
36 | + public $navigationPathToConfigurableProductCategory = '{{Apparel}}/{{Shirts}}'; |
|
37 | 37 | |
38 | 38 | public $defaultConfigurableProductName = '{{Zolof The Rock And Roll Destroyer: LOL Cat T-shirt}}'; |
39 | 39 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * @var string Xpath to add a Simple product to the cart from the product's page |
42 | 42 | */ |
43 | 43 | |
44 | - public $addToCartXpath = '//button[@title="{{Add to Cart}}" and contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
44 | + public $addToCartXpath = '//button[@title="{{Add to Cart}}" and contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
45 | 45 | |
46 | 46 | /** |
47 | 47 | * @var string Xpath to add a Simple product to the cart from the category page |
@@ -53,15 +53,15 @@ discard block |
||
53 | 53 | * @var string Xpath to find a product's link on a category page. Used to navigate to the product from the category |
54 | 54 | */ |
55 | 55 | |
56 | - public $categoryProductPageXpath = '//h2[@class="product-name"]/descendant::a'; |
|
56 | + public $categoryProductPageXpath = '//h2[@class="product-name"]/descendant::a'; |
|
57 | 57 | |
58 | - public $categorySpecificProductPageXpath = '//h2[@class="product-name"]/descendant::a[.="%s"]'; |
|
58 | + public $categorySpecificProductPageXpath = '//h2[@class="product-name"]/descendant::a[.="%s"]'; |
|
59 | 59 | |
60 | 60 | /** |
61 | 61 | * @var string Xpath used after a product has been added to the cart to verify that the product has been added to the cart |
62 | 62 | */ |
63 | 63 | |
64 | - public $addToCartSuccessXpath = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; |
|
64 | + public $addToCartSuccessXpath = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; |
|
65 | 65 | |
66 | 66 | /** |
67 | 67 | * @var string The base URL of the installation |
@@ -87,12 +87,12 @@ discard block |
||
87 | 87 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
88 | 88 | */ |
89 | 89 | |
90 | - public $logoutNavigationInstructions = [ |
|
90 | + public $logoutNavigationInstructions = [ |
|
91 | 91 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//ul[@class="links"]/descendant::a[.="{{Log Out}}"]'], |
92 | 92 | // [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{Log Out}}"]'] |
93 | 93 | ]; |
94 | 94 | |
95 | - public $cartNavigationInstructions = [ |
|
95 | + public $cartNavigationInstructions = [ |
|
96 | 96 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//a[@class="top-link-cart"]'] |
97 | 97 | ]; |
98 | 98 | |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | * @var array Instructions in an Xpath array syntax to get to the login page. |
101 | 101 | */ |
102 | 102 | |
103 | - public $navigateToCustomerPageInstructions = [ |
|
103 | + public $navigateToCustomerPageInstructions = [ |
|
104 | 104 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//ul[@class="links"]/descendant::a[.="{{My Account}}"]'], |
105 | 105 | //[\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="My Account"]'] |
106 | 106 | ]; |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * @var array Instructions in an Xpath array syntax to get to the start of the checkout page |
110 | 110 | */ |
111 | 111 | |
112 | - public $checkoutNavigationInstructions = [ |
|
112 | + public $checkoutNavigationInstructions = [ |
|
113 | 113 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//ul[@class="links"]/descendant::a[@title="{{Checkout}}"]'], |
114 | 114 | // [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="minicart-actions"]/descendant::a[@title="Checkout"]'] |
115 | 115 | ]; |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
120 | 120 | */ |
121 | 121 | |
122 | - public $registrationNavigationInstructions = [ |
|
122 | + public $registrationNavigationInstructions = [ |
|
123 | 123 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//ul[@class="links"]/descendant::a[.="{{My Account}}"]'], |
124 | 124 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//button[@title="{{Create an Account}}"]'] |
125 | 125 | ]; |
@@ -140,10 +140,10 @@ discard block |
||
140 | 140 | public $cartSummaryCheckoutProductLoopQtyXpath = '(//table[@id="checkout-review-table"]/tbody/descendant::td[@data-rwd-label="Qty"])[%d]'; |
141 | 141 | public $cartSummaryCheckoutProductLoopSubtotalXpath = '(//table[@id="checkout-review-table"]/tbody/descendant::td[@data-rwd-label="Subtotal"])[%d]'; |
142 | 142 | |
143 | - public $cartSummaryCheckoutSubTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " Subtotal "]/../td[2]'; |
|
144 | - public $cartSummaryCheckoutTax = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " Tax "]/../td[2]'; |
|
145 | - public $cartSummaryCheckoutGrandTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " Grand Total "]/../td[2]'; |
|
146 | - public $cartSummaryCheckoutShippingTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[contains(concat(" ",normalize-space(.)," "), " Shipping & Handling (")]/../td[2]'; |
|
143 | + public $cartSummaryCheckoutSubTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " Subtotal "]/../td[2]'; |
|
144 | + public $cartSummaryCheckoutTax = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " Tax "]/../td[2]'; |
|
145 | + public $cartSummaryCheckoutGrandTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " Grand Total "]/../td[2]'; |
|
146 | + public $cartSummaryCheckoutShippingTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[contains(concat(" ",normalize-space(.)," "), " Shipping & Handling (")]/../td[2]'; |
|
147 | 147 | |
148 | 148 | public $breadCrumbXpath = '//div[@class="breadcrumbs"]'; |
149 | 149 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | public $productListOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; |
157 | 157 | public $productListPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; |
158 | 158 | public $productListWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; |
159 | - public $productListAddToCartLinkXpath = '/descendant::div[@class="product-shop"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
159 | + public $productListAddToCartLinkXpath = '/descendant::div[@class="product-shop"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
160 | 160 | |
161 | 161 | public $productGridBaseXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," products-grid ")]/li[%d]'; |
162 | 162 | public $productGridDescriptionXpath = '/*[.="no description in the grid view"]'; |
@@ -167,15 +167,15 @@ discard block |
||
167 | 167 | public $productGridOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; |
168 | 168 | public $productGridPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; |
169 | 169 | public $productGridWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; |
170 | - public $productGridAddToCartLinkXpath = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
170 | + public $productGridAddToCartLinkXpath = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
171 | 171 | |
172 | 172 | public $productCollectionViewModeXpath = '//p[@class="view-mode"]/strong'; |
173 | 173 | public $productCollectionSortByXpath = '//div[@class="sort-by"]/descendant::option[@selected]'; // We select using the div, not the title because the title may be translated |
174 | 174 | public $productCollectionShowCountXpath = '//div[@class="limiter"]/descendant::option[@selected]'; // dittos |
175 | - public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; |
|
175 | + public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; |
|
176 | 176 | public $productCollectionProductCountXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," pager ")]/descendant::p[contains(concat(" ",normalize-space(@class)," ")," amount ")]'; |
177 | 177 | |
178 | - public $layeredNavigationBaseXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; |
|
178 | + public $layeredNavigationBaseXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; |
|
179 | 179 | |
180 | 180 | public $searchInputXpath = '//input[@id="search"]'; |
181 | 181 | public $searchSubmitXpath = '//form[@id="search_mini_form"]/descendant::button[@title="Search"]'; |
@@ -194,11 +194,11 @@ discard block |
||
194 | 194 | public $breadCrumbMemberXpath = '/descendant::a[concat(" ",normalize-space(.)," ")=" {{%s}} "]'; |
195 | 195 | public $breadCrumbSelectorXpath = '/descendant::a[%d]'; |
196 | 196 | |
197 | - public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; |
|
197 | + public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; |
|
198 | 198 | |
199 | 199 | public $layeredNavigationFilterTypesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li'; |
200 | 200 | public $layeredNavigationFilterLinkXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li/descendant::a'; |
201 | - public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; |
|
201 | + public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; |
|
202 | 202 | |
203 | 203 | public $storeSwitcherInstructionsXpath = [ |
204 | 204 | [\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"]'; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | public $doNotUseBillingAddressForShipping = '//input[@id="billing:use_for_shipping_no"]'; |
57 | 57 | |
58 | 58 | public $billingContinueButtonXpath = '//div[@id="billing-buttons-container"]/descendant::button[@title="{{Continue}}"]'; |
59 | - public $billingContinueCompletedXpath = '//span[@id="billing-please-wait"]'; |
|
59 | + public $billingContinueCompletedXpath = '//span[@id="billing-please-wait"]'; |
|
60 | 60 | |
61 | 61 | public $billingNewAddressXpath = '//select[@id="billing-address-select"]/option[.="{{New Address}}"]'; |
62 | 62 | public $shippingNewAddressXpath = '//select[@id="shipping-address-select"]/option[.="{{New Address}}"]'; |
@@ -81,24 +81,24 @@ discard block |
||
81 | 81 | public $shippingTelephoneXpath = '//input[@id="shipping:telephone"]'; |
82 | 82 | public $shippingFaxXpath = '//input[@id="shipping:fax"]'; |
83 | 83 | public $shippingContinueButtonXpath = '//div[@id="shipping-buttons-container"]/descendant::button[@title="{{Continue}}"]'; |
84 | - public $shippingContinueCompletedXpath = '//span[@id="shipping-please-wait"]'; |
|
85 | - public $shippingMethodContinueCompletedXpath = '//span[@id="shipping-method-please-wait"]'; |
|
84 | + public $shippingContinueCompletedXpath = '//span[@id="shipping-please-wait"]'; |
|
85 | + public $shippingMethodContinueCompletedXpath = '//span[@id="shipping-method-please-wait"]'; |
|
86 | 86 | |
87 | 87 | public $shippingMethodContinueButtonXpath = '//div[@id="shipping-method-buttons-container"]/descendant::button'; |
88 | - public $defaultShippingXpath = '//input[@name="shipping_method"]'; |
|
88 | + public $defaultShippingXpath = '//input[@name="shipping_method"]'; |
|
89 | 89 | |
90 | 90 | public $paymentMethodContinueCompleteXpath = '//span[@id="payment-please-wait"]'; |
91 | 91 | |
92 | 92 | public $paymentMethodContinueButtonXpath = '//div[@id="payment-buttons-container"]/descendant::button'; |
93 | 93 | |
94 | - public $placeOrderButtonXpath = '//div[@id="review-buttons-container"]/descendant::button[@title="{{Place Order}}"]'; |
|
94 | + public $placeOrderButtonXpath = '//div[@id="review-buttons-container"]/descendant::button[@title="{{Place Order}}"]'; |
|
95 | 95 | |
96 | 96 | public $orderReceivedCompleteXpath = '//h1[.="{{Your order has been received.}}"]'; |
97 | 97 | |
98 | 98 | public $shippingMethodFormXpath = '//form[@id="co-shipping-method-form"]'; |
99 | 99 | |
100 | 100 | public $passwordInputXpath = '//input[@id="billing:customer_password"]'; |
101 | - public $confirmPasswordInputXpath = '//input[@id="billing:confirm_password"]'; |
|
101 | + public $confirmPasswordInputXpath = '//input[@id="billing:confirm_password"]'; |
|
102 | 102 | |
103 | 103 | /** |
104 | 104 | * This is a hard one. Each of the summary checkout products will be iterated over until they cannot be found. Having |
@@ -115,10 +115,10 @@ discard block |
||
115 | 115 | public $cartSummaryCheckoutProductLoopQtyXpath = '(//table[@id="checkout-review-table"]/tbody//td[3])[%d]'; |
116 | 116 | public $cartSummaryCheckoutProductLoopSubtotalXpath = '(//table[@id="checkout-review-table"]/tbody//td[4]/descendant::span[@class="cart-price"])[%d]'; |
117 | 117 | |
118 | - public $cartSummaryCheckoutSubTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Subtotal}} "]/../td[2]'; |
|
119 | - public $cartSummaryCheckoutTax = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Tax}} "]/../td[2]'; |
|
120 | - public $cartSummaryCheckoutGrandTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Grand Total}} "]/../td[2]'; |
|
121 | - public $cartSummaryCheckoutShippingTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[contains(concat(" ",normalize-space(.)," "), " {{Shipping & Handling}} (")]/../td[2]'; |
|
118 | + public $cartSummaryCheckoutSubTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Subtotal}} "]/../td[2]'; |
|
119 | + public $cartSummaryCheckoutTax = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Tax}} "]/../td[2]'; |
|
120 | + public $cartSummaryCheckoutGrandTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Grand Total}} "]/../td[2]'; |
|
121 | + public $cartSummaryCheckoutShippingTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[contains(concat(" ",normalize-space(.)," "), " {{Shipping & Handling}} (")]/../td[2]'; |
|
122 | 122 | |
123 | 123 | public $orderNumberExtractorXpath = '//p[contains(., "{{Your order # is:}}")]'; |
124 | 124 |
@@ -78,31 +78,31 @@ discard block |
||
78 | 78 | * @var array Instructions in an Xpath array syntax to get to the login page. |
79 | 79 | */ |
80 | 80 | |
81 | - public $navigateToCustomerPageInstructions = []; |
|
81 | + public $navigateToCustomerPageInstructions = []; |
|
82 | 82 | |
83 | 83 | /** |
84 | 84 | * @var array Instructions in an Xpath array syntax to get to the shopping cart |
85 | 85 | */ |
86 | 86 | |
87 | - public $cartNavigationInstructions = []; |
|
87 | + public $cartNavigationInstructions = []; |
|
88 | 88 | |
89 | 89 | /** |
90 | 90 | * @var array Instructions in an Xpath array syntax to get to the start of the checkout page |
91 | 91 | */ |
92 | 92 | |
93 | - public $checkoutNavigationInstructions = []; |
|
93 | + public $checkoutNavigationInstructions = []; |
|
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 $registrationNavigationInstructions = []; |
|
99 | + public $registrationNavigationInstructions = []; |
|
100 | 100 | |
101 | 101 | /** |
102 | 102 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
103 | 103 | */ |
104 | 104 | |
105 | - public $logoutNavigationInstructions = []; |
|
105 | + public $logoutNavigationInstructions = []; |
|
106 | 106 | |
107 | 107 | public $registerFirstNameXpath; |
108 | 108 | public $registerLastNameXpath; |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | |
344 | 344 | public function getBreadCrumbMemberXpath($name) |
345 | 345 | { |
346 | - return $this->getBreadCrumbXpath() . $this->translatePlaceholders(sprintf($this->breadCrumbMemberXpath, $name)); |
|
346 | + return $this->getBreadCrumbXpath().$this->translatePlaceholders(sprintf($this->breadCrumbMemberXpath, $name)); |
|
347 | 347 | } |
348 | 348 | |
349 | 349 | /** |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | */ |
352 | 352 | public function getBreadCrumbSelectorXpath($test) |
353 | 353 | { |
354 | - return $this->getBreadCrumbXpath() . sprintf($this->breadCrumbSelectorXpath, $test); |
|
354 | + return $this->getBreadCrumbXpath().sprintf($this->breadCrumbSelectorXpath, $test); |
|
355 | 355 | } |
356 | 356 | |
357 | 357 | /** |
@@ -597,7 +597,7 @@ discard block |
||
597 | 597 | */ |
598 | 598 | public function getProductListAddToCartLinkXpath($count) |
599 | 599 | { |
600 | - return sprintf($this->productListBaseXpath . $this->productListAddToCartLinkXpath, $count); |
|
600 | + return sprintf($this->productListBaseXpath.$this->productListAddToCartLinkXpath, $count); |
|
601 | 601 | } |
602 | 602 | |
603 | 603 | /** |
@@ -605,7 +605,7 @@ discard block |
||
605 | 605 | */ |
606 | 606 | public function getProductGridAddToCartLinkXpath($count) |
607 | 607 | { |
608 | - return sprintf($this->productGridBaseXpath . $this->productGridAddToCartLinkXpath, $count); |
|
608 | + return sprintf($this->productGridBaseXpath.$this->productGridAddToCartLinkXpath, $count); |
|
609 | 609 | } |
610 | 610 | |
611 | 611 | /** |
@@ -613,7 +613,7 @@ discard block |
||
613 | 613 | */ |
614 | 614 | public function getProductListDescriptionXpath($count) |
615 | 615 | { |
616 | - return sprintf($this->productListBaseXpath . $this->productListDescriptionXpath, $count); |
|
616 | + return sprintf($this->productListBaseXpath.$this->productListDescriptionXpath, $count); |
|
617 | 617 | } |
618 | 618 | |
619 | 619 | /** |
@@ -621,7 +621,7 @@ discard block |
||
621 | 621 | */ |
622 | 622 | public function getProductListTitleXpath($count) |
623 | 623 | { |
624 | - return sprintf($this->productListBaseXpath . $this->productListTitleXpath, $count); |
|
624 | + return sprintf($this->productListBaseXpath.$this->productListTitleXpath, $count); |
|
625 | 625 | } |
626 | 626 | |
627 | 627 | /** |
@@ -629,7 +629,7 @@ discard block |
||
629 | 629 | */ |
630 | 630 | public function getProductListCompareLinkXpath($count) |
631 | 631 | { |
632 | - return sprintf($this->productListBaseXpath . $this->productListCompareLinkXpath, $count); |
|
632 | + return sprintf($this->productListBaseXpath.$this->productListCompareLinkXpath, $count); |
|
633 | 633 | } |
634 | 634 | |
635 | 635 | /** |
@@ -637,7 +637,7 @@ discard block |
||
637 | 637 | */ |
638 | 638 | public function getProductListImageXpath($count) |
639 | 639 | { |
640 | - return sprintf($this->productListBaseXpath . $this->productListImageXpath, $count); |
|
640 | + return sprintf($this->productListBaseXpath.$this->productListImageXpath, $count); |
|
641 | 641 | } |
642 | 642 | |
643 | 643 | /** |
@@ -645,7 +645,7 @@ discard block |
||
645 | 645 | */ |
646 | 646 | public function getProductListLinkXpath($count) |
647 | 647 | { |
648 | - return sprintf($this->productListBaseXpath . $this->productListLinkXpath, $count); |
|
648 | + return sprintf($this->productListBaseXpath.$this->productListLinkXpath, $count); |
|
649 | 649 | } |
650 | 650 | |
651 | 651 | /** |
@@ -653,7 +653,7 @@ discard block |
||
653 | 653 | */ |
654 | 654 | public function getProductListOriginalPriceXpath($count) |
655 | 655 | { |
656 | - return sprintf($this->productListBaseXpath . $this->productListOriginalPriceXpath, $count); |
|
656 | + return sprintf($this->productListBaseXpath.$this->productListOriginalPriceXpath, $count); |
|
657 | 657 | } |
658 | 658 | |
659 | 659 | /** |
@@ -661,7 +661,7 @@ discard block |
||
661 | 661 | */ |
662 | 662 | public function getProductListPriceXpath($count) |
663 | 663 | { |
664 | - return sprintf($this->productListBaseXpath . $this->productListPriceXpath, $count); |
|
664 | + return sprintf($this->productListBaseXpath.$this->productListPriceXpath, $count); |
|
665 | 665 | } |
666 | 666 | |
667 | 667 | /** |
@@ -669,7 +669,7 @@ discard block |
||
669 | 669 | */ |
670 | 670 | public function getProductListWishlistLinkXpath($count) |
671 | 671 | { |
672 | - return sprintf($this->productListBaseXpath . $this->productListWishlistLinkXpath, $count); |
|
672 | + return sprintf($this->productListBaseXpath.$this->productListWishlistLinkXpath, $count); |
|
673 | 673 | } |
674 | 674 | |
675 | 675 | /** |
@@ -677,7 +677,7 @@ discard block |
||
677 | 677 | */ |
678 | 678 | public function getProductGridDescriptionXpath($count) |
679 | 679 | { |
680 | - return sprintf($this->productGridBaseXpath . $this->productGridDescriptionXpath, $count); |
|
680 | + return sprintf($this->productGridBaseXpath.$this->productGridDescriptionXpath, $count); |
|
681 | 681 | } |
682 | 682 | |
683 | 683 | /** |
@@ -685,7 +685,7 @@ discard block |
||
685 | 685 | */ |
686 | 686 | public function getProductGridTitleXpath($count) |
687 | 687 | { |
688 | - return sprintf($this->productGridBaseXpath . $this->productGridTitleXpath, $count); |
|
688 | + return sprintf($this->productGridBaseXpath.$this->productGridTitleXpath, $count); |
|
689 | 689 | } |
690 | 690 | |
691 | 691 | /** |
@@ -693,7 +693,7 @@ discard block |
||
693 | 693 | */ |
694 | 694 | public function getProductGridCompareLinkXpath($count) |
695 | 695 | { |
696 | - return sprintf($this->productGridBaseXpath . $this->productGridCompareLinkXpath, $count); |
|
696 | + return sprintf($this->productGridBaseXpath.$this->productGridCompareLinkXpath, $count); |
|
697 | 697 | } |
698 | 698 | |
699 | 699 | /** |
@@ -701,7 +701,7 @@ discard block |
||
701 | 701 | */ |
702 | 702 | public function getProductGridImageXpath($count) |
703 | 703 | { |
704 | - return sprintf($this->productGridBaseXpath . $this->productGridImageXpath, $count); |
|
704 | + return sprintf($this->productGridBaseXpath.$this->productGridImageXpath, $count); |
|
705 | 705 | } |
706 | 706 | |
707 | 707 | /** |
@@ -709,7 +709,7 @@ discard block |
||
709 | 709 | */ |
710 | 710 | public function getProductGridLinkXpath($count) |
711 | 711 | { |
712 | - return sprintf($this->productGridBaseXpath . $this->productGridLinkXpath, $count); |
|
712 | + return sprintf($this->productGridBaseXpath.$this->productGridLinkXpath, $count); |
|
713 | 713 | } |
714 | 714 | |
715 | 715 | /** |
@@ -717,7 +717,7 @@ discard block |
||
717 | 717 | */ |
718 | 718 | public function getProductGridOriginalPriceXpath($count) |
719 | 719 | { |
720 | - return sprintf($this->productGridBaseXpath . $this->productGridOriginalPriceXpath, $count); |
|
720 | + return sprintf($this->productGridBaseXpath.$this->productGridOriginalPriceXpath, $count); |
|
721 | 721 | } |
722 | 722 | |
723 | 723 | /** |
@@ -725,7 +725,7 @@ discard block |
||
725 | 725 | */ |
726 | 726 | public function getProductGridPriceXpath($count) |
727 | 727 | { |
728 | - return sprintf($this->productGridBaseXpath . $this->productGridPriceXpath, $count); |
|
728 | + return sprintf($this->productGridBaseXpath.$this->productGridPriceXpath, $count); |
|
729 | 729 | } |
730 | 730 | |
731 | 731 | /** |
@@ -733,7 +733,7 @@ discard block |
||
733 | 733 | */ |
734 | 734 | public function getProductGridWishlistLinkXpath($count) |
735 | 735 | { |
736 | - return sprintf($this->productGridBaseXpath . $this->productGridWishlistLinkXpath, $count); |
|
736 | + return sprintf($this->productGridBaseXpath.$this->productGridWishlistLinkXpath, $count); |
|
737 | 737 | } |
738 | 738 | |
739 | 739 | /** |
@@ -762,7 +762,7 @@ discard block |
||
762 | 762 | */ |
763 | 763 | public function getLogoutSuccessXpath() |
764 | 764 | { |
765 | - return$this->translatePlaceholders( $this->logoutSuccessXpath); |
|
765 | + return$this->translatePlaceholders($this->logoutSuccessXpath); |
|
766 | 766 | } |
767 | 767 | |
768 | 768 | /** |
@@ -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 $productPagePriceXpath = '(//form[@id="product_addtocart_form"]/descendant::span[contains(concat(" ",normalize-space(@class)," ")," regular-price ")]/span[contains(concat(" ",normalize-space(@class)," ")," price ")])[1]'; |
34 | 34 | |
@@ -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,16 +51,16 @@ 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 | /** |
60 | 60 | * @var string Xpath used after a product has been added to the cart to verify that the product has been added to the cart |
61 | 61 | */ |
62 | 62 | |
63 | - public $addToCartSuccessXpath = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; |
|
63 | + public $addToCartSuccessXpath = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * @var string The base URL of the installation |
@@ -74,12 +74,12 @@ discard block |
||
74 | 74 | * @var array Instructions in an Xpath array syntax to get to the login page. |
75 | 75 | */ |
76 | 76 | |
77 | - public $navigateToCustomerPageInstructions = [ |
|
77 | + public $navigateToCustomerPageInstructions = [ |
|
78 | 78 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
79 | 79 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{My Account}}"]'] |
80 | 80 | ]; |
81 | 81 | |
82 | - public $cartNavigationInstructions = [ |
|
82 | + public $cartNavigationInstructions = [ |
|
83 | 83 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
84 | 84 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[contains(concat(" ",normalize-space(@class)," ")," top-link-cart ")]'] |
85 | 85 | ]; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * @var array Instructions in an Xpath array syntax to get to the start of the checkout page |
89 | 89 | */ |
90 | 90 | |
91 | - public $checkoutNavigationInstructions = [ |
|
91 | + public $checkoutNavigationInstructions = [ |
|
92 | 92 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="header-minicart"]/descendant::span[.="{{Cart}}"]'], |
93 | 93 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="minicart-actions"]/descendant::a[@title="{{Checkout}}"]'] |
94 | 94 | ]; |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
98 | 98 | */ |
99 | 99 | |
100 | - public $registrationNavigationInstructions = [ |
|
100 | + public $registrationNavigationInstructions = [ |
|
101 | 101 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
102 | 102 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{Register}}"]'] |
103 | 103 | ]; |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
107 | 107 | */ |
108 | 108 | |
109 | - public $logoutNavigationInstructions = [ |
|
109 | + public $logoutNavigationInstructions = [ |
|
110 | 110 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
111 | 111 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{Log Out}}"]'] |
112 | 112 | ]; |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | public $productListOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; |
135 | 135 | public $productListPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; |
136 | 136 | public $productListWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; |
137 | - public $productListAddToCartLinkXpath = '/descendant::p[@class="action"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
137 | + public $productListAddToCartLinkXpath = '/descendant::p[@class="action"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
138 | 138 | |
139 | 139 | public $productGridBaseXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," products-grid ")]/li[%d]'; |
140 | 140 | public $productGridDescriptionXpath = '/*[.="no description in the grid view"]'; |
@@ -145,15 +145,15 @@ discard block |
||
145 | 145 | public $productGridOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; |
146 | 146 | public $productGridPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; |
147 | 147 | public $productGridWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; |
148 | - public $productGridAddToCartLinkXpath = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
148 | + public $productGridAddToCartLinkXpath = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
149 | 149 | |
150 | 150 | public $productCollectionViewModeXpath = '//p[@class="view-mode"]/strong'; |
151 | 151 | public $productCollectionSortByXpath = '//div[@class="sort-by"]/descendant::option[@selected]'; // We select using the div, not the title because the title may be translated |
152 | 152 | public $productCollectionShowCountXpath = '//div[@class="limiter"]/descendant::option[@selected]'; // dittos |
153 | - public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; |
|
153 | + public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; |
|
154 | 154 | public $productCollectionProductCountXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," pager ")]/descendant::p[contains(concat(" ",normalize-space(@class)," ")," amount ")]'; |
155 | 155 | |
156 | - public $layeredNavigationBaseXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; |
|
156 | + public $layeredNavigationBaseXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; |
|
157 | 157 | |
158 | 158 | public $searchInputXpath = '//input[@id="search"]'; |
159 | 159 | public $searchSubmitXpath = '//form[@id="search_mini_form"]/descendant::button[@title="Search"]'; |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | public $configurableProductLabelXpath = '//div[@id="product-options-wrapper"]/descendant::label'; |
167 | 167 | public $configurableSwatchSelectorXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]'; |
168 | 168 | public $configurableSwatchImgXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/descendant::img'; |
169 | - public $configurableSwatchNotAvailableXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/ancestor::li[contains(concat(" ",normalize-space(@class)," ")," not-available ")]'; |
|
169 | + public $configurableSwatchNotAvailableXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/ancestor::li[contains(concat(" ",normalize-space(@class)," ")," not-available ")]'; |
|
170 | 170 | |
171 | 171 | public $configurableProductOptionXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::option[starts-with(., "%s")]'; |
172 | 172 | public $configurableSwatchOptionLabelAttributeName = 'title'; |
@@ -176,17 +176,17 @@ discard block |
||
176 | 176 | public $breadCrumbMemberXpath = '/descendant::a[concat(" ",normalize-space(.)," ")=" {{%s}} "]'; |
177 | 177 | public $breadCrumbSelectorXpath = '/descendant::a[%d]'; |
178 | 178 | |
179 | - public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; |
|
179 | + public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; |
|
180 | 180 | |
181 | 181 | public $layeredNavigationFilterTypesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li'; |
182 | 182 | public $layeredNavigationSwatchFilterTypesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li'; |
183 | 183 | public $layeredNavigationFilterLinkXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li/descendant::a'; |
184 | - public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; |
|
184 | + public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; |
|
185 | 185 | |
186 | 186 | public $layeredNavigationSwatchAppliesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::ol[contains(concat(" ",normalize-space(@class)," ")," configurable-swatch-list ")]'; |
187 | 187 | public $layeredNavigationSwatchTitleAttribute = 'title'; |
188 | 188 | |
189 | - public $storeSwitcherInstructionsXpath = [ |
|
189 | + public $storeSwitcherInstructionsXpath = [ |
|
190 | 190 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//select[@id="select-language"]/descendant::option[contains(@value,"___store=%s")]'], |
191 | 191 | ]; |
192 | 192 |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | public $shippingNewAddressXpath = '//select[@id="shipping-address-select"]/option[.="{{New Address}}"]'; |
58 | 58 | |
59 | 59 | public $billingContinueButtonXpath = '//div[@id="billing-buttons-container"]/descendant::button[@title="{{Continue}}"]'; |
60 | - public $billingContinueCompletedXpath = '//span[@id="billing-please-wait"]'; |
|
60 | + public $billingContinueCompletedXpath = '//span[@id="billing-please-wait"]'; |
|
61 | 61 | |
62 | 62 | |
63 | 63 | public $shippingFirstNameXpath = '//input[@id="shipping:firstname"]'; |
@@ -79,24 +79,24 @@ discard block |
||
79 | 79 | public $shippingTelephoneXpath = '//input[@id="shipping:telephone"]'; |
80 | 80 | public $shippingFaxXpath = '//input[@id="shipping:fax"]'; |
81 | 81 | public $shippingContinueButtonXpath = '//div[@id="shipping-buttons-container"]/descendant::button[@title="{{Continue}}"]'; |
82 | - public $shippingContinueCompletedXpath = '//span[@id="shipping-please-wait"]'; |
|
83 | - public $shippingMethodContinueCompletedXpath = '//span[@id="shipping-method-please-wait"]'; |
|
82 | + public $shippingContinueCompletedXpath = '//span[@id="shipping-please-wait"]'; |
|
83 | + public $shippingMethodContinueCompletedXpath = '//span[@id="shipping-method-please-wait"]'; |
|
84 | 84 | |
85 | 85 | public $shippingMethodContinueButtonXpath = '//div[@id="shipping-method-buttons-container"]/descendant::button'; |
86 | - public $defaultShippingXpath = '//input[@name="shipping_method"]'; |
|
86 | + public $defaultShippingXpath = '//input[@name="shipping_method"]'; |
|
87 | 87 | |
88 | 88 | public $paymentMethodContinueCompleteXpath = '//span[@id="payment-please-wait"]'; |
89 | 89 | |
90 | 90 | public $paymentMethodContinueButtonXpath = '//div[@id="payment-buttons-container"]/descendant::button'; |
91 | 91 | |
92 | - public $placeOrderButtonXpath = '//div[@id="review-buttons-container"]/descendant::button[@title="{{Place Order}}"]'; |
|
92 | + public $placeOrderButtonXpath = '//div[@id="review-buttons-container"]/descendant::button[@title="{{Place Order}}"]'; |
|
93 | 93 | |
94 | 94 | public $orderReceivedCompleteXpath = '//h1[.="Your order has been received."]'; |
95 | 95 | |
96 | 96 | public $shippingMethodFormXpath = '//form[@id="co-shipping-method-form"]'; |
97 | 97 | |
98 | 98 | public $passwordInputXpath = '//input[@id="billing:customer_password"]'; |
99 | - public $confirmPasswordInputXpath = '//input[@id="billing:confirm_password"]'; |
|
99 | + public $confirmPasswordInputXpath = '//input[@id="billing:confirm_password"]'; |
|
100 | 100 | |
101 | 101 | /** |
102 | 102 | * This is a hard one. Each of the summary checkout products will be iterated over until they cannot be found. Having |
@@ -113,10 +113,10 @@ discard block |
||
113 | 113 | public $cartSummaryCheckoutProductLoopQtyXpath = '(//table[@id="checkout-review-table"]/tbody/descendant::td[@data-rwd-label="{{Qty}}"])[%d]'; |
114 | 114 | public $cartSummaryCheckoutProductLoopSubtotalXpath = '(//table[@id="checkout-review-table"]/tbody/descendant::td[@data-rwd-label="{{Subtotal}}"])[%d]'; |
115 | 115 | |
116 | - public $cartSummaryCheckoutSubTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Subtotal}} "]/../td[2]'; |
|
117 | - public $cartSummaryCheckoutTax = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Tax}} "]/../td[2]'; |
|
118 | - public $cartSummaryCheckoutGrandTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Grand Total}} "]/../td[2]'; |
|
119 | - public $cartSummaryCheckoutShippingTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[contains(concat(" ",normalize-space(.)," "), " {{Shipping & Handling}} (")]/../td[2]'; |
|
116 | + public $cartSummaryCheckoutSubTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Subtotal}} "]/../td[2]'; |
|
117 | + public $cartSummaryCheckoutTax = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Tax}} "]/../td[2]'; |
|
118 | + public $cartSummaryCheckoutGrandTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[concat(" ",normalize-space(.)," ") = " {{Grand Total}} "]/../td[2]'; |
|
119 | + public $cartSummaryCheckoutShippingTotal = '//table[@id="checkout-review-table"]/tfoot/tr/td[contains(concat(" ",normalize-space(.)," "), " {{Shipping & Handling}} (")]/../td[2]'; |
|
120 | 120 | |
121 | 121 | public $orderNumberExtractorXpath = '//p[contains(., "{{Your order # is:}}")]'; |
122 | 122 |
@@ -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 $productPagePriceXpath = '(//form[@id="product_addtocart_form"]/descendant::span[contains(concat(" ",normalize-space(@class)," ")," regular-price ")]/span[contains(concat(" ",normalize-space(@class)," ")," price ")])[1]'; |
34 | 34 | |
@@ -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,16 +51,16 @@ 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 | /** |
60 | 60 | * @var string Xpath used after a product has been added to the cart to verify that the product has been added to the cart |
61 | 61 | */ |
62 | 62 | |
63 | - public $addToCartSuccessXpath = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; |
|
63 | + public $addToCartSuccessXpath = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * @var string The base URL of the installation |
@@ -74,12 +74,12 @@ discard block |
||
74 | 74 | * @var array Instructions in an Xpath array syntax to get to the login page. |
75 | 75 | */ |
76 | 76 | |
77 | - public $navigateToCustomerPageInstructions = [ |
|
77 | + public $navigateToCustomerPageInstructions = [ |
|
78 | 78 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
79 | 79 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{My Account}}"]'] |
80 | 80 | ]; |
81 | 81 | |
82 | - public $cartNavigationInstructions = [ |
|
82 | + public $cartNavigationInstructions = [ |
|
83 | 83 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
84 | 84 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[contains(concat(" ",normalize-space(@class)," ")," top-link-cart ")]'] |
85 | 85 | ]; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * @var array Instructions in an Xpath array syntax to get to the start of the checkout page |
89 | 89 | */ |
90 | 90 | |
91 | - public $checkoutNavigationInstructions = [ |
|
91 | + public $checkoutNavigationInstructions = [ |
|
92 | 92 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="header-minicart"]/descendant::span[.="{{Cart}}"]'], |
93 | 93 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="minicart-actions"]/descendant::a[@title="{{Checkout}}"]'] |
94 | 94 | ]; |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
98 | 98 | */ |
99 | 99 | |
100 | - public $registrationNavigationInstructions = [ |
|
100 | + public $registrationNavigationInstructions = [ |
|
101 | 101 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
102 | 102 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{Register}}"]'] |
103 | 103 | ]; |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
107 | 107 | */ |
108 | 108 | |
109 | - public $logoutNavigationInstructions = [ |
|
109 | + public $logoutNavigationInstructions = [ |
|
110 | 110 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
111 | 111 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{Log Out}}"]'] |
112 | 112 | ]; |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | public $productListOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; |
135 | 135 | public $productListPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; |
136 | 136 | public $productListWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; |
137 | - public $productListAddToCartLinkXpath = '/descendant::p[@class="action"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
137 | + public $productListAddToCartLinkXpath = '/descendant::p[@class="action"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
138 | 138 | |
139 | 139 | public $productGridBaseXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," products-grid ")]/li[%d]'; |
140 | 140 | public $productGridDescriptionXpath = '/*[.="no description in the grid view"]'; |
@@ -145,15 +145,15 @@ discard block |
||
145 | 145 | public $productGridOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; |
146 | 146 | public $productGridPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; |
147 | 147 | public $productGridWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; |
148 | - public $productGridAddToCartLinkXpath = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
148 | + public $productGridAddToCartLinkXpath = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
149 | 149 | |
150 | 150 | public $productCollectionViewModeXpath = '//p[@class="view-mode"]/strong'; |
151 | 151 | public $productCollectionSortByXpath = '//div[@class="sort-by"]/descendant::option[@selected]'; // We select using the div, not the title because the title may be translated |
152 | 152 | public $productCollectionShowCountXpath = '//div[@class="limiter"]/descendant::option[@selected]'; // dittos |
153 | - public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; |
|
153 | + public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; |
|
154 | 154 | public $productCollectionProductCountXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," pager ")]/descendant::p[contains(concat(" ",normalize-space(@class)," ")," amount ")]'; |
155 | 155 | |
156 | - public $layeredNavigationBaseXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; |
|
156 | + public $layeredNavigationBaseXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; |
|
157 | 157 | |
158 | 158 | public $searchInputXpath = '//input[@id="search"]'; |
159 | 159 | public $searchSubmitXpath = '//form[@id="search_mini_form"]/descendant::button[@title="Search"]'; |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | public $configurableProductLabelXpath = '//div[@id="product-options-wrapper"]/descendant::label'; |
167 | 167 | public $configurableSwatchSelectorXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]'; |
168 | 168 | public $configurableSwatchImgXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/descendant::img'; |
169 | - public $configurableSwatchNotAvailableXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/ancestor::li[contains(concat(" ",normalize-space(@class)," ")," not-available ")]'; |
|
169 | + public $configurableSwatchNotAvailableXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/ancestor::li[contains(concat(" ",normalize-space(@class)," ")," not-available ")]'; |
|
170 | 170 | public $configurableProductOptionXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::option[starts-with(., "%s")]'; |
171 | 171 | public $configurableSwatchOptionLabelAttributeName = 'title'; |
172 | 172 | |
@@ -175,16 +175,16 @@ discard block |
||
175 | 175 | public $breadCrumbMemberXpath = '/descendant::a[concat(" ",normalize-space(.)," ")=" {{%s}} "]'; |
176 | 176 | public $breadCrumbSelectorXpath = '/descendant::a[%d]'; |
177 | 177 | |
178 | - public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; |
|
178 | + public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; |
|
179 | 179 | |
180 | 180 | public $layeredNavigationFilterTypesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li'; |
181 | 181 | public $layeredNavigationFilterLinkXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li/descendant::a'; |
182 | - public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; |
|
182 | + public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; |
|
183 | 183 | public $layeredNavigationSwatchFilterTypesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li'; |
184 | 184 | public $layeredNavigationSwatchAppliesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::ol[contains(concat(" ",normalize-space(@class)," ")," configurable-swatch-list ")]'; |
185 | 185 | public $layeredNavigationSwatchTitleAttribute = 'title'; |
186 | 186 | |
187 | - public $storeSwitcherInstructionsXpath = [ |
|
187 | + public $storeSwitcherInstructionsXpath = [ |
|
188 | 188 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//select[@id="select-language"]/descendant::option[contains(@value,"___store=%s")]'], |
189 | 189 | ]; |
190 | 190 |