@@ -27,19 +27,19 @@ |
||
| 27 | 27 | { |
| 28 | 28 | $translator = $this->testCase->getTranslator(); |
| 29 | 29 | $baseXpath = '//h4[contains(concat(" ",normalize-space(@class)," ")," head-products ")]/../../following-sibling::div[1]/descendant::tr[%d]'; |
| 30 | - $titleXpath = $baseXpath . '/descendant::div[contains(concat(" ",normalize-space(@class)," ")," item-text ")]/h5'; |
|
| 31 | - $skuXpath = $baseXpath . '/descendant::div[contains(concat(" ",normalize-space(@class)," ")," item-text ")]/div'; |
|
| 32 | - $itemStatusXpath = $baseXpath . '/td[2]'; |
|
| 33 | - $originalPriceXpath = $baseXpath . '/td[3]/span'; |
|
| 34 | - $priceXpath = $baseXpath . '/td[4]/descendant::span[contains(concat(" ",normalize-space(@class)," ")," price ")]'; |
|
| 35 | - $orderedQtyXpath = $baseXpath . sprintf('/td[5]/descendant::td[.="%s"]/../td/strong', $translator->translate('Ordered')); |
|
| 36 | - $invoicedQtyXpath = $baseXpath . sprintf('/td[5]/descendant::td[.="%s"]/../td/strong', $translator->translate('Invoiced')); |
|
| 37 | - $shippedQtyXpath = $baseXpath . sprintf('/td[5]/descendant::td[.="%s"]/../td/strong', $translator->translate('Shipped')); |
|
| 38 | - $subtotalXpath = $baseXpath . '/td[6]/descendant::span[contains(concat(" ",normalize-space(@class)," ")," price ")]'; |
|
| 39 | - $taxXpath = $baseXpath . '/td[7]/descendant::span[contains(concat(" ",normalize-space(@class)," ")," price ")]'; |
|
| 40 | - $taxPercentXpath = $baseXpath . '/td[8]'; |
|
| 41 | - $discountAmountXpath = $baseXpath . '/td[9]/descendant::span[contains(concat(" ",normalize-space(@class)," ")," price ")]'; |
|
| 42 | - $rowTotalXpath = $baseXpath . '/td[10]/descendant::span[contains(concat(" ",normalize-space(@class)," ")," price ")]'; |
|
| 30 | + $titleXpath = $baseXpath.'/descendant::div[contains(concat(" ",normalize-space(@class)," ")," item-text ")]/h5'; |
|
| 31 | + $skuXpath = $baseXpath.'/descendant::div[contains(concat(" ",normalize-space(@class)," ")," item-text ")]/div'; |
|
| 32 | + $itemStatusXpath = $baseXpath.'/td[2]'; |
|
| 33 | + $originalPriceXpath = $baseXpath.'/td[3]/span'; |
|
| 34 | + $priceXpath = $baseXpath.'/td[4]/descendant::span[contains(concat(" ",normalize-space(@class)," ")," price ")]'; |
|
| 35 | + $orderedQtyXpath = $baseXpath.sprintf('/td[5]/descendant::td[.="%s"]/../td/strong', $translator->translate('Ordered')); |
|
| 36 | + $invoicedQtyXpath = $baseXpath.sprintf('/td[5]/descendant::td[.="%s"]/../td/strong', $translator->translate('Invoiced')); |
|
| 37 | + $shippedQtyXpath = $baseXpath.sprintf('/td[5]/descendant::td[.="%s"]/../td/strong', $translator->translate('Shipped')); |
|
| 38 | + $subtotalXpath = $baseXpath.'/td[6]/descendant::span[contains(concat(" ",normalize-space(@class)," ")," price ")]'; |
|
| 39 | + $taxXpath = $baseXpath.'/td[7]/descendant::span[contains(concat(" ",normalize-space(@class)," ")," price ")]'; |
|
| 40 | + $taxPercentXpath = $baseXpath.'/td[8]'; |
|
| 41 | + $discountAmountXpath = $baseXpath.'/td[9]/descendant::span[contains(concat(" ",normalize-space(@class)," ")," price ")]'; |
|
| 42 | + $rowTotalXpath = $baseXpath.'/td[10]/descendant::span[contains(concat(" ",normalize-space(@class)," ")," price ")]'; |
|
| 43 | 43 | |
| 44 | 44 | $count = 2; // To take into account the order items header |
| 45 | 45 | while ($this->webDriver->elementExists(sprintf($skuXpath, $count), WebDriver::BY_XPATH)) { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | { |
| 40 | 40 | $xpath = '//h4[contains(concat(" ",normalize-space(@class)," ")," head-payment-method ")]/../../descendant::fieldset'; |
| 41 | 41 | |
| 42 | - $currencyXpath = $xpath . '/div'; |
|
| 42 | + $currencyXpath = $xpath.'/div'; |
|
| 43 | 43 | |
| 44 | 44 | $currencyElement = $this->webDriver->byXpath($currencyXpath); |
| 45 | 45 | $currencyText = trim($currencyElement->getText()); |
@@ -1,4 +1,4 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -\Magium\Cli\CommandLoader::addCommandDir('Magium\Magento\Cli\Command', realpath(__DIR__ . '/lib/Magento/Cli/Command')); |
|
| 4 | -\Magium\Cli\Command\ListElements::addDirectory(realpath(__DIR__ . '/lib'), 'Magium'); |
|
| 5 | 3 | \ No newline at end of file |
| 4 | +\Magium\Cli\CommandLoader::addCommandDir('Magium\Magento\Cli\Command', realpath(__DIR__.'/lib/Magento/Cli/Command')); |
|
| 5 | +\Magium\Cli\Command\ListElements::addDirectory(realpath(__DIR__.'/lib'), 'Magium'); |
|
| 6 | 6 | \ No newline at end of file |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | WebDriver $webDriver |
| 16 | 16 | ) |
| 17 | 17 | { |
| 18 | - $this->webDriver = $webDriver; |
|
| 18 | + $this->webDriver = $webDriver; |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | public function wait() |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | const NAME = 'Saved CC'; |
| 9 | 9 | const ACTION = 'Admin\Configuration\PaymentMethods\SavedCC'; |
| 10 | 10 | |
| 11 | - protected $section = 'Payment Methods/' . self::NAME; |
|
| 11 | + protected $section = 'Payment Methods/'.self::NAME; |
|
| 12 | 12 | |
| 13 | 13 | protected $settings = [ |
| 14 | 14 | 'payment_ccsave_active' => 0, |
@@ -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"]'; |
@@ -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"]'; |
@@ -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"]'], |