@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Magium\Magento\Actions\Admin\Configuration; |
| 4 | 4 | |
| 5 | -use Facebook\WebDriver\WebDriverElement; |
|
| 6 | -use Facebook\WebDriver\WebDriverSelect; |
|
| 7 | 5 | use Magium\Magento\AbstractMagentoTestCase; |
| 8 | 6 | use Magium\Magento\Navigators\Admin\SystemConfiguration; |
| 9 | 7 | use Magium\Magento\Themes\Admin\ThemeConfiguration; |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $xpath = ''; |
| 78 | 78 | if (count($xpath) === 2) { |
| 79 | 79 | $nav = explode('/', $parts[0]); |
| 80 | - $xpath = $this->themeConfiguration->getSystemConfigSectionDisplayCheckXpath($nav[1]) . '/descendant::'; |
|
| 80 | + $xpath = $this->themeConfiguration->getSystemConfigSectionDisplayCheckXpath($nav[1]).'/descendant::'; |
|
| 81 | 81 | } |
| 82 | 82 | $xpath .= $this->themeConfiguration->getSystemConfigSettingLabelXpath($matches[1]); |
| 83 | 83 | $labelElement = $this->webDriver->byXpath($xpath); |
@@ -2,10 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Magium\Magento\Actions\Cart; |
| 4 | 4 | |
| 5 | -use Magium\Actions\WaitForPageLoaded; |
|
| 6 | 5 | use Magium\Magento\Extractors\Catalog\Cart\AddToCart; |
| 7 | 6 | use Magium\Magento\Extractors\Catalog\Product\ConfigurableProductOptions; |
| 8 | -use Magium\Magento\Extractors\Catalog\Product\Swatch; |
|
| 9 | 7 | use Magium\Magento\Extractors\Catalog\Product\Option; |
| 10 | 8 | use Magium\Magento\Extractors\Catalog\Product\SwatchValue; |
| 11 | 9 | use Magium\Magento\Extractors\Catalog\Product\Value; |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | // The options are sorted by their entry into the setOption() method. Need to have it ordered by the page order |
| 62 | 62 | |
| 63 | 63 | if (!$elementOption instanceof Option) { |
| 64 | - throw new InvalidConfigurableOptionException('Missing the attribute: ' . $attributeName); |
|
| 64 | + throw new InvalidConfigurableOptionException('Missing the attribute: '.$attributeName); |
|
| 65 | 65 | } |
| 66 | 66 | $element = $elementOption->getValue($this->getOption($attributeName)); |
| 67 | 67 | if (!$element instanceof Value) { |
@@ -6,8 +6,6 @@ |
||
| 6 | 6 | use Magium\Magento\Actions\Checkout\Steps\LogInCustomer; |
| 7 | 7 | use Magium\Magento\Actions\Checkout\Steps\PaymentMethod; |
| 8 | 8 | use Magium\Magento\Actions\Checkout\Steps\PlaceOrder; |
| 9 | -use Magium\Magento\Actions\Checkout\Steps\ReviewOrder; |
|
| 10 | -use Magium\Magento\Actions\Checkout\Steps\SelectCustomerCheckout; |
|
| 11 | 9 | use Magium\Magento\Actions\Checkout\Steps\ShippingAddress; |
| 12 | 10 | use Magium\Magento\Actions\Checkout\Steps\ShippingMethod; |
| 13 | 11 | use Magium\Magento\Extractors\Checkout\CartSummary; |
@@ -5,7 +5,6 @@ discard block |
||
| 5 | 5 | use Magium\Magento\Actions\Checkout\Steps\BillingAddress; |
| 6 | 6 | use Magium\Magento\Actions\Checkout\Steps\PaymentMethod; |
| 7 | 7 | use Magium\Magento\Actions\Checkout\Steps\PlaceOrder; |
| 8 | -use Magium\Magento\Actions\Checkout\Steps\ReviewOrder; |
|
| 9 | 8 | use Magium\Magento\Actions\Checkout\Steps\SelectGuestCheckout; |
| 10 | 9 | use Magium\Magento\Actions\Checkout\Steps\ShippingAddress; |
| 11 | 10 | use Magium\Magento\Actions\Checkout\Steps\ShippingMethod; |
@@ -14,7 +13,6 @@ discard block |
||
| 14 | 13 | use Magium\Magento\Navigators\Checkout\Checkout; |
| 15 | 14 | use Magium\Magento\Navigators\Checkout\CheckoutStart; |
| 16 | 15 | use Magium\Magento\Themes\OnePageCheckout\AbstractThemeConfiguration; |
| 17 | -use Magium\Magento\Themes\OnePageCheckout\ThemeConfiguration as OnePageCheckoutTheme; |
|
| 18 | 16 | |
| 19 | 17 | class GuestCheckout extends AbstractCheckout |
| 20 | 18 | { |
@@ -6,8 +6,6 @@ discard block |
||
| 6 | 6 | use Magium\Magento\Actions\Checkout\Steps\NewCustomerPassword; |
| 7 | 7 | use Magium\Magento\Actions\Checkout\Steps\PaymentMethod; |
| 8 | 8 | use Magium\Magento\Actions\Checkout\Steps\PlaceOrder; |
| 9 | -use Magium\Magento\Actions\Checkout\Steps\ReviewOrder; |
|
| 10 | -use Magium\Magento\Actions\Checkout\Steps\SelectCustomerCheckout; |
|
| 11 | 9 | use Magium\Magento\Actions\Checkout\Steps\SelectRegisterNewCustomerCheckout; |
| 12 | 10 | use Magium\Magento\Actions\Checkout\Steps\ShippingAddress; |
| 13 | 11 | use Magium\Magento\Actions\Checkout\Steps\ShippingMethod; |
@@ -16,7 +14,6 @@ discard block |
||
| 16 | 14 | use Magium\Magento\Navigators\Checkout\Checkout; |
| 17 | 15 | use Magium\Magento\Navigators\Checkout\CheckoutStart; |
| 18 | 16 | use Magium\Magento\Themes\OnePageCheckout\AbstractThemeConfiguration; |
| 19 | -use Magium\Magento\Themes\OnePageCheckout\ThemeConfiguration as OnePageCheckoutTheme; |
|
| 20 | 17 | |
| 21 | 18 | class RegisterNewCustomerCheckout extends AbstractCheckout |
| 22 | 19 | { |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Magium\Magento\Extractors\Catalog\LayeredNavigation\FilterTypes; |
| 4 | 4 | |
| 5 | -use Facebook\WebDriver\WebDriverBy; |
|
| 6 | -use Facebook\WebDriver\WebDriverElement; |
|
| 7 | 5 | use Magium\Magento\Extractors\Catalog\LayeredNavigation\FilterValue; |
| 8 | 6 | use Magium\Magento\Extractors\Catalog\LayeredNavigation\UnparseableValueException; |
| 9 | 7 | |
@@ -44,8 +44,8 @@ |
||
| 44 | 44 | /* @var $elements \DOMElement[] */ |
| 45 | 45 | $returnElements = []; |
| 46 | 46 | foreach ($elements as $element) { |
| 47 | - $elementDocument = new \DOMDocument(); |
|
| 48 | - $html =$element->C14N(); |
|
| 47 | + $elementDocument = new \DOMDocument(); |
|
| 48 | + $html = $element->C14N(); |
|
| 49 | 49 | $elementDocument->loadXML($html); |
| 50 | 50 | $elementXpath = new \DOMXPath($elementDocument); |
| 51 | 51 | $titleElements = $elementXpath->query(sprintf('//*[@%s]', $this->theme->getLayeredNavigationSwatchTitleAttribute())); |
@@ -15,20 +15,20 @@ discard block |
||
| 15 | 15 | /** |
| 16 | 16 | * @var string The Xpath string that finds the base of the navigation menu |
| 17 | 17 | */ |
| 18 | - public $navigationBaseXPathSelector = '//nav[@id="nav"]/ol'; |
|
| 18 | + public $navigationBaseXPathSelector = '//nav[@id="nav"]/ol'; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * @var string The Xpath string that can be used iteratively to find child navigation nodes |
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | - public $navigationChildXPathSelector = 'a[concat(" ",normalize-space(.)," ") = " %s "]/..'; |
|
| 24 | + public $navigationChildXPathSelector = 'a[concat(" ",normalize-space(.)," ") = " %s "]/..'; |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * @var string A simple, default path to use for categories. |
| 28 | 28 | */ |
| 29 | 29 | |
| 30 | - public $navigationPathToSimpleProductCategory = '{{Accessories}}/{{Jewelry}}'; |
|
| 31 | - public $navigationPathToConfigurableProductCategory = '{{Men}}/{{Shirts}}'; |
|
| 30 | + public $navigationPathToSimpleProductCategory = '{{Accessories}}/{{Jewelry}}'; |
|
| 31 | + public $navigationPathToConfigurableProductCategory = '{{Men}}/{{Shirts}}'; |
|
| 32 | 32 | |
| 33 | 33 | public $defaultSimpleProductName = '{{Blue Horizons Bracelets}}'; |
| 34 | 34 | public $defaultConfigurableProductName = '{{Plaid Cotton Shirt}}'; |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * @var string Xpath to add a Simple product to the cart from the product's page |
| 38 | 38 | */ |
| 39 | 39 | |
| 40 | - public $addToCartXpath = '//button[@title="{{Add to Cart}}" and contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
| 40 | + public $addToCartXpath = '//button[@title="{{Add to Cart}}" and contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * @var string Xpath to add a Simple product to the cart from the category page |
@@ -49,16 +49,16 @@ discard block |
||
| 49 | 49 | * @var string Xpath to find a product's link on a category page. Used to navigate to the product from the category |
| 50 | 50 | */ |
| 51 | 51 | |
| 52 | - public $categoryProductPageXpath = '//h2[@class="product-name"]/descendant::a'; |
|
| 52 | + public $categoryProductPageXpath = '//h2[@class="product-name"]/descendant::a'; |
|
| 53 | 53 | |
| 54 | - public $categorySpecificProductPageXpath = '//h2[@class="product-name"]/descendant::a[.="%s"]'; |
|
| 54 | + public $categorySpecificProductPageXpath = '//h2[@class="product-name"]/descendant::a[.="%s"]'; |
|
| 55 | 55 | |
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | 58 | * @var string Xpath used after a product has been added to the cart to verify that the product has been added to the cart |
| 59 | 59 | */ |
| 60 | 60 | |
| 61 | - public $addToCartSuccessXpath = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; |
|
| 61 | + public $addToCartSuccessXpath = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; |
|
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * @var string The base URL of the installation |
@@ -72,12 +72,12 @@ discard block |
||
| 72 | 72 | * @var array Instructions in an Xpath array syntax to get to the login page. |
| 73 | 73 | */ |
| 74 | 74 | |
| 75 | - public $navigateToCustomerPageInstructions = [ |
|
| 75 | + public $navigateToCustomerPageInstructions = [ |
|
| 76 | 76 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
| 77 | 77 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{My Account}}"]'] |
| 78 | 78 | ]; |
| 79 | 79 | |
| 80 | - public $cartNavigationInstructions = [ |
|
| 80 | + public $cartNavigationInstructions = [ |
|
| 81 | 81 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
| 82 | 82 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[contains(concat(" ",normalize-space(@class)," ")," top-link-cart ")]'] |
| 83 | 83 | ]; |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * @var array Instructions in an Xpath array syntax to get to the start of the checkout page |
| 87 | 87 | */ |
| 88 | 88 | |
| 89 | - public $checkoutNavigationInstructions = [ |
|
| 89 | + public $checkoutNavigationInstructions = [ |
|
| 90 | 90 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="header-minicart"]/descendant::span[.="{{Cart}}"]'], |
| 91 | 91 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="minicart-actions"]/descendant::a[@title="{{Checkout}}"]'] |
| 92 | 92 | ]; |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
| 96 | 96 | */ |
| 97 | 97 | |
| 98 | - public $registrationNavigationInstructions = [ |
|
| 98 | + public $registrationNavigationInstructions = [ |
|
| 99 | 99 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
| 100 | 100 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{Register}}"]'] |
| 101 | 101 | ]; |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
| 105 | 105 | */ |
| 106 | 106 | |
| 107 | - public $logoutNavigationInstructions = [ |
|
| 107 | + public $logoutNavigationInstructions = [ |
|
| 108 | 108 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], |
| 109 | 109 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{Log Out}}"]'] |
| 110 | 110 | ]; |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | public $productListOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; |
| 133 | 133 | public $productListPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; |
| 134 | 134 | public $productListWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; |
| 135 | - public $productListAddToCartLinkXpath = '/descendant::p[@class="action"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
| 135 | + public $productListAddToCartLinkXpath = '/descendant::p[@class="action"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
| 136 | 136 | |
| 137 | 137 | public $productGridBaseXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," products-grid ")]/li[%d]'; |
| 138 | 138 | public $productGridDescriptionXpath = '/*[.="no description in the grid view"]'; |
@@ -143,15 +143,15 @@ discard block |
||
| 143 | 143 | public $productGridOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; |
| 144 | 144 | public $productGridPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; |
| 145 | 145 | public $productGridWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; |
| 146 | - public $productGridAddToCartLinkXpath = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
| 146 | + public $productGridAddToCartLinkXpath = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; |
|
| 147 | 147 | |
| 148 | 148 | public $productCollectionViewModeXpath = '//p[@class="view-mode"]/strong'; |
| 149 | 149 | public $productCollectionSortByXpath = '//div[@class="sort-by"]/descendant::option[@selected]'; // We select using the div, not the title because the title may be translated |
| 150 | 150 | public $productCollectionShowCountXpath = '//div[@class="limiter"]/descendant::option[@selected]'; // dittos |
| 151 | - public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; |
|
| 151 | + public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; |
|
| 152 | 152 | public $productCollectionProductCountXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," pager ")]/descendant::p[contains(concat(" ",normalize-space(@class)," ")," amount ")]'; |
| 153 | 153 | |
| 154 | - public $layeredNavigationBaseXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; |
|
| 154 | + public $layeredNavigationBaseXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; |
|
| 155 | 155 | |
| 156 | 156 | public $searchInputXpath = '//input[@id="search"]'; |
| 157 | 157 | public $searchSubmitXpath = '//form[@id="search_mini_form"]/descendant::button[@title="Search"]'; |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | public $configurableProductLabelXpath = '//div[@id="product-options-wrapper"]/descendant::label'; |
| 165 | 165 | public $configurableSwatchSelectorXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]'; |
| 166 | 166 | public $configurableSwatchImgXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/descendant::img'; |
| 167 | - public $configurableSwatchNotAvailableXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/ancestor::li[contains(concat(" ",normalize-space(@class)," ")," not-available ")]'; |
|
| 167 | + public $configurableSwatchNotAvailableXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/ancestor::li[contains(concat(" ",normalize-space(@class)," ")," not-available ")]'; |
|
| 168 | 168 | |
| 169 | 169 | public $configurableProductOptionXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::option[starts-with(., "%s")]'; |
| 170 | 170 | |
@@ -173,17 +173,17 @@ discard block |
||
| 173 | 173 | public $breadCrumbMemberXpath = '/descendant::a[concat(" ",normalize-space(.)," ")=" {{%s}} "]'; |
| 174 | 174 | public $breadCrumbSelectorXpath = '/descendant::a[%d]'; |
| 175 | 175 | |
| 176 | - public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; |
|
| 176 | + public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; |
|
| 177 | 177 | |
| 178 | 178 | public $layeredNavigationFilterTypesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li'; |
| 179 | 179 | public $layeredNavigationSwatchFilterTypesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li'; |
| 180 | 180 | public $layeredNavigationFilterLinkXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li/descendant::a'; |
| 181 | - public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; |
|
| 181 | + public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; |
|
| 182 | 182 | |
| 183 | 183 | public $layeredNavigationSwatchAppliesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::ol[contains(concat(" ",normalize-space(@class)," ")," configurable-swatch-list ")]'; |
| 184 | 184 | public $layeredNavigationSwatchTitleAttribute = 'title'; |
| 185 | 185 | |
| 186 | - public $storeSwitcherInstructionsXpath = [ |
|
| 186 | + public $storeSwitcherInstructionsXpath = [ |
|
| 187 | 187 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//select[@id="select-language"]/descendant::option[contains(@value,"___store=%s")]'], |
| 188 | 188 | ]; |
| 189 | 189 | |
@@ -23,16 +23,16 @@ discard block |
||
| 23 | 23 | // public $navigationChildXPathSelector1 = 'li/descendant::span[.="{{%s}}"]'; |
| 24 | 24 | public $navigationChildXPathSelector = 'a[concat(" ",normalize-space(.)," ") = " {{%s}} "]/..'; |
| 25 | 25 | |
| 26 | - public $adminPopupMessageContainerXpath = '//*[@id="message-popup-window"]'; |
|
| 27 | - public $adminPopupMessageCloseButtonXpath = '//*[@id="message-popup-window"]/descendant::*[@title="close"]'; |
|
| 26 | + public $adminPopupMessageContainerXpath = '//*[@id="message-popup-window"]'; |
|
| 27 | + public $adminPopupMessageCloseButtonXpath = '//*[@id="message-popup-window"]/descendant::*[@title="close"]'; |
|
| 28 | 28 | |
| 29 | - public $systemConfigTabsXpath = '//ul[@id="system_config_tabs"]/descendant::a[concat(" ",normalize-space(.)," ") = " {{%s}} "]'; |
|
| 30 | - public $systemConfigSectionToggleXpath = '//form[@id="config_edit_form"]/descendant::div[contains(concat(" ",normalize-space(@class)," ")," section-config ")]/descendant::a[.="{{%s}}"]'; |
|
| 31 | - public $systemConfigSectionDisplayCheckXpath = '//legend[.="{{%s}}"]/ancestor::fieldset'; |
|
| 32 | - public $systemConfigToggleEnableXpath = '//legend[.="{{%s}}"]/../descendant::td[concat(" ",normalize-space(.)," ") = " {{Enabled}} "]/../td/descendant::select/option[@value="%d"]'; |
|
| 29 | + public $systemConfigTabsXpath = '//ul[@id="system_config_tabs"]/descendant::a[concat(" ",normalize-space(.)," ") = " {{%s}} "]'; |
|
| 30 | + public $systemConfigSectionToggleXpath = '//form[@id="config_edit_form"]/descendant::div[contains(concat(" ",normalize-space(@class)," ")," section-config ")]/descendant::a[.="{{%s}}"]'; |
|
| 31 | + public $systemConfigSectionDisplayCheckXpath = '//legend[.="{{%s}}"]/ancestor::fieldset'; |
|
| 32 | + public $systemConfigToggleEnableXpath = '//legend[.="{{%s}}"]/../descendant::td[concat(" ",normalize-space(.)," ") = " {{Enabled}} "]/../td/descendant::select/option[@value="%d"]'; |
|
| 33 | 33 | |
| 34 | - public $xTreeRootXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," x-tree-root-ct ")]/div/li[contains(concat(" ",normalize-space(@class)," ")," x-tree-node ")]/div/a'; |
|
| 35 | - public $xTreeNamedRootXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," x-tree-root-ct ")]/div/li[contains(concat(" ",normalize-space(@class)," ")," x-tree-node ")]/div/a[contains(concat("---",normalize-space(.)), "---{{%s}} (")]'; |
|
| 34 | + public $xTreeRootXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," x-tree-root-ct ")]/div/li[contains(concat(" ",normalize-space(@class)," ")," x-tree-node ")]/div/a'; |
|
| 35 | + public $xTreeNamedRootXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," x-tree-root-ct ")]/div/li[contains(concat(" ",normalize-space(@class)," ")," x-tree-node ")]/div/a[contains(concat("---",normalize-space(.)), "---{{%s}} (")]'; |
|
| 36 | 36 | public $xTreeChildXpath = 'ul/li[contains(concat(" ",normalize-space(@class)," ")," x-tree-node ")]/div/a/span[contains(concat("---",normalize-space(.)), "---{{%s}} (")]/..'; |
| 37 | 37 | public $xTreeChildNodePrefixXpath = '/../..'; |
| 38 | 38 | public $xTreeChildNodeExpandPrefixXpath = '/../img[contains(concat(" ",normalize-space(@class)," ")," x-tree-ec-icon ")]'; |
@@ -41,12 +41,12 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | public $systemConfigSaveSuccessfulXpath = '//li[@class="success-msg"]/descendant::span[.="{{The configuration has been saved}}."]'; |
| 43 | 43 | |
| 44 | - public $testLoggedInAtBaseUrl = '//a[@class="active"]/span[.="{{Dashboard}}"]'; |
|
| 44 | + public $testLoggedInAtBaseUrl = '//a[@class="active"]/span[.="{{Dashboard}}"]'; |
|
| 45 | 45 | |
| 46 | 46 | public $tableButtonXpath = '//table[@class="actions"]/descendant::span[.="{{%s}}"]'; |
| 47 | 47 | |
| 48 | 48 | public $selectOrderXpath = '//table[@id="sales_order_grid_table"]/descendant::td[concat(" ",normalize-space(.)," ") = " %s "]/../td/a[.="{{View}}"]'; |
| 49 | - public $selectCustomerXpath = '//table[@id="customerGrid_table"]/descendant::td[concat(" ",normalize-space(.)," ") = " %s "]/../td/a[.="{{Edit}}"]'; |
|
| 49 | + public $selectCustomerXpath = '//table[@id="customerGrid_table"]/descendant::td[concat(" ",normalize-space(.)," ") = " %s "]/../td/a[.="{{Edit}}"]'; |
|
| 50 | 50 | |
| 51 | 51 | public $systemConfigSettingLabelXpath = '//td[@class="label"]/label[.=" {{%s}}"]'; |
| 52 | 52 | |
@@ -57,12 +57,12 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | public $guaranteedPageLoadedElementDisplayedXpath = '//div[@class="footer"]'; |
| 59 | 59 | |
| 60 | - public $successfulActionXpath = '//li[@class="success-msg"]'; |
|
| 60 | + public $successfulActionXpath = '//li[@class="success-msg"]'; |
|
| 61 | 61 | public $errorActionXpath = '//li[@class="error-msg"]'; |
| 62 | 62 | |
| 63 | 63 | public $shippingCarrierXpath = '//select[@name="tracking[%d][carrier_code]"]'; |
| 64 | - public $shippingTitleXpath = '//input[@name="tracking[%d][title]"]'; |
|
| 65 | - public $shippingTrackingNumberXpath = '//input[@name="tracking[%d][number]"]'; |
|
| 64 | + public $shippingTitleXpath = '//input[@name="tracking[%d][title]"]'; |
|
| 65 | + public $shippingTrackingNumberXpath = '//input[@name="tracking[%d][number]"]'; |
|
| 66 | 66 | |
| 67 | 67 | public $formButtonXpath = '//div[@class="content-header"]/p[@class="form-buttons"]/descendant::span[.="{{%s}}"]'; |
| 68 | 68 | |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | * @var string |
| 244 | 244 | */ |
| 245 | 245 | |
| 246 | - public $searchButtonText = '{{Search}}'; |
|
| 246 | + public $searchButtonText = '{{Search}}'; |
|
| 247 | 247 | |
| 248 | 248 | /** |
| 249 | 249 | * @return Translator |
@@ -72,31 +72,31 @@ discard block |
||
| 72 | 72 | * @var array Instructions in an Xpath array syntax to get to the login page. |
| 73 | 73 | */ |
| 74 | 74 | |
| 75 | - public $navigateToCustomerPageInstructions = []; |
|
| 75 | + public $navigateToCustomerPageInstructions = []; |
|
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | 78 | * @var array Instructions in an Xpath array syntax to get to the shopping cart |
| 79 | 79 | */ |
| 80 | 80 | |
| 81 | - public $cartNavigationInstructions = []; |
|
| 81 | + public $cartNavigationInstructions = []; |
|
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | 84 | * @var array Instructions in an Xpath array syntax to get to the start of the checkout page |
| 85 | 85 | */ |
| 86 | 86 | |
| 87 | - public $checkoutNavigationInstructions = []; |
|
| 87 | + public $checkoutNavigationInstructions = []; |
|
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | 90 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
| 91 | 91 | */ |
| 92 | 92 | |
| 93 | - public $registrationNavigationInstructions = []; |
|
| 93 | + public $registrationNavigationInstructions = []; |
|
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | 96 | * @var array Instructions in an Xpath array syntax to get to the customer registration page |
| 97 | 97 | */ |
| 98 | 98 | |
| 99 | - public $logoutNavigationInstructions = []; |
|
| 99 | + public $logoutNavigationInstructions = []; |
|
| 100 | 100 | |
| 101 | 101 | public $registerFirstNameXpath; |
| 102 | 102 | public $registerLastNameXpath; |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | |
| 322 | 322 | public function getBreadCrumbMemberXpath($name) |
| 323 | 323 | { |
| 324 | - return $this->getBreadCrumbXpath() . $this->translatePlaceholders(sprintf($this->breadCrumbMemberXpath, $name)); |
|
| 324 | + return $this->getBreadCrumbXpath().$this->translatePlaceholders(sprintf($this->breadCrumbMemberXpath, $name)); |
|
| 325 | 325 | } |
| 326 | 326 | |
| 327 | 327 | /** |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | */ |
| 330 | 330 | public function getBreadCrumbSelectorXpath($test) |
| 331 | 331 | { |
| 332 | - return $this->getBreadCrumbXpath() . sprintf($this->breadCrumbSelectorXpath, $test); |
|
| 332 | + return $this->getBreadCrumbXpath().sprintf($this->breadCrumbSelectorXpath, $test); |
|
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | |
@@ -569,7 +569,7 @@ discard block |
||
| 569 | 569 | */ |
| 570 | 570 | public function getProductListAddToCartLinkXpath($count) |
| 571 | 571 | { |
| 572 | - return sprintf($this->productListBaseXpath . $this->productListAddToCartLinkXpath, $count); |
|
| 572 | + return sprintf($this->productListBaseXpath.$this->productListAddToCartLinkXpath, $count); |
|
| 573 | 573 | } |
| 574 | 574 | |
| 575 | 575 | /** |
@@ -577,7 +577,7 @@ discard block |
||
| 577 | 577 | */ |
| 578 | 578 | public function getProductGridAddToCartLinkXpath($count) |
| 579 | 579 | { |
| 580 | - return sprintf($this->productGridBaseXpath . $this->productGridAddToCartLinkXpath, $count); |
|
| 580 | + return sprintf($this->productGridBaseXpath.$this->productGridAddToCartLinkXpath, $count); |
|
| 581 | 581 | } |
| 582 | 582 | |
| 583 | 583 | /** |
@@ -585,7 +585,7 @@ discard block |
||
| 585 | 585 | */ |
| 586 | 586 | public function getProductListDescriptionXpath($count) |
| 587 | 587 | { |
| 588 | - return sprintf($this->productListBaseXpath . $this->productListDescriptionXpath, $count); |
|
| 588 | + return sprintf($this->productListBaseXpath.$this->productListDescriptionXpath, $count); |
|
| 589 | 589 | } |
| 590 | 590 | |
| 591 | 591 | /** |
@@ -593,7 +593,7 @@ discard block |
||
| 593 | 593 | */ |
| 594 | 594 | public function getProductListTitleXpath($count) |
| 595 | 595 | { |
| 596 | - return sprintf($this->productListBaseXpath . $this->productListTitleXpath, $count); |
|
| 596 | + return sprintf($this->productListBaseXpath.$this->productListTitleXpath, $count); |
|
| 597 | 597 | } |
| 598 | 598 | |
| 599 | 599 | /** |
@@ -601,7 +601,7 @@ discard block |
||
| 601 | 601 | */ |
| 602 | 602 | public function getProductListCompareLinkXpath($count) |
| 603 | 603 | { |
| 604 | - return sprintf($this->productListBaseXpath . $this->productListCompareLinkXpath, $count); |
|
| 604 | + return sprintf($this->productListBaseXpath.$this->productListCompareLinkXpath, $count); |
|
| 605 | 605 | } |
| 606 | 606 | |
| 607 | 607 | /** |
@@ -609,7 +609,7 @@ discard block |
||
| 609 | 609 | */ |
| 610 | 610 | public function getProductListImageXpath($count) |
| 611 | 611 | { |
| 612 | - return sprintf($this->productListBaseXpath . $this->productListImageXpath, $count); |
|
| 612 | + return sprintf($this->productListBaseXpath.$this->productListImageXpath, $count); |
|
| 613 | 613 | } |
| 614 | 614 | |
| 615 | 615 | /** |
@@ -617,7 +617,7 @@ discard block |
||
| 617 | 617 | */ |
| 618 | 618 | public function getProductListLinkXpath($count) |
| 619 | 619 | { |
| 620 | - return sprintf($this->productListBaseXpath . $this->productListLinkXpath, $count); |
|
| 620 | + return sprintf($this->productListBaseXpath.$this->productListLinkXpath, $count); |
|
| 621 | 621 | } |
| 622 | 622 | |
| 623 | 623 | /** |
@@ -625,7 +625,7 @@ discard block |
||
| 625 | 625 | */ |
| 626 | 626 | public function getProductListOriginalPriceXpath($count) |
| 627 | 627 | { |
| 628 | - return sprintf($this->productListBaseXpath . $this->productListOriginalPriceXpath, $count); |
|
| 628 | + return sprintf($this->productListBaseXpath.$this->productListOriginalPriceXpath, $count); |
|
| 629 | 629 | } |
| 630 | 630 | |
| 631 | 631 | /** |
@@ -633,7 +633,7 @@ discard block |
||
| 633 | 633 | */ |
| 634 | 634 | public function getProductListPriceXpath($count) |
| 635 | 635 | { |
| 636 | - return sprintf($this->productListBaseXpath . $this->productListPriceXpath, $count); |
|
| 636 | + return sprintf($this->productListBaseXpath.$this->productListPriceXpath, $count); |
|
| 637 | 637 | } |
| 638 | 638 | |
| 639 | 639 | /** |
@@ -641,7 +641,7 @@ discard block |
||
| 641 | 641 | */ |
| 642 | 642 | public function getProductListWishlistLinkXpath($count) |
| 643 | 643 | { |
| 644 | - return sprintf($this->productListBaseXpath . $this->productListWishlistLinkXpath, $count); |
|
| 644 | + return sprintf($this->productListBaseXpath.$this->productListWishlistLinkXpath, $count); |
|
| 645 | 645 | } |
| 646 | 646 | |
| 647 | 647 | /** |
@@ -649,7 +649,7 @@ discard block |
||
| 649 | 649 | */ |
| 650 | 650 | public function getProductGridDescriptionXpath($count) |
| 651 | 651 | { |
| 652 | - return sprintf($this->productGridBaseXpath . $this->productGridDescriptionXpath, $count); |
|
| 652 | + return sprintf($this->productGridBaseXpath.$this->productGridDescriptionXpath, $count); |
|
| 653 | 653 | } |
| 654 | 654 | |
| 655 | 655 | /** |
@@ -657,7 +657,7 @@ discard block |
||
| 657 | 657 | */ |
| 658 | 658 | public function getProductGridTitleXpath($count) |
| 659 | 659 | { |
| 660 | - return sprintf($this->productGridBaseXpath . $this->productGridTitleXpath, $count); |
|
| 660 | + return sprintf($this->productGridBaseXpath.$this->productGridTitleXpath, $count); |
|
| 661 | 661 | } |
| 662 | 662 | |
| 663 | 663 | /** |
@@ -665,7 +665,7 @@ discard block |
||
| 665 | 665 | */ |
| 666 | 666 | public function getProductGridCompareLinkXpath($count) |
| 667 | 667 | { |
| 668 | - return sprintf($this->productGridBaseXpath . $this->productGridCompareLinkXpath, $count); |
|
| 668 | + return sprintf($this->productGridBaseXpath.$this->productGridCompareLinkXpath, $count); |
|
| 669 | 669 | } |
| 670 | 670 | |
| 671 | 671 | /** |
@@ -673,7 +673,7 @@ discard block |
||
| 673 | 673 | */ |
| 674 | 674 | public function getProductGridImageXpath($count) |
| 675 | 675 | { |
| 676 | - return sprintf($this->productGridBaseXpath . $this->productGridImageXpath, $count); |
|
| 676 | + return sprintf($this->productGridBaseXpath.$this->productGridImageXpath, $count); |
|
| 677 | 677 | } |
| 678 | 678 | |
| 679 | 679 | /** |
@@ -681,7 +681,7 @@ discard block |
||
| 681 | 681 | */ |
| 682 | 682 | public function getProductGridLinkXpath($count) |
| 683 | 683 | { |
| 684 | - return sprintf($this->productGridBaseXpath . $this->productGridLinkXpath, $count); |
|
| 684 | + return sprintf($this->productGridBaseXpath.$this->productGridLinkXpath, $count); |
|
| 685 | 685 | } |
| 686 | 686 | |
| 687 | 687 | /** |
@@ -689,7 +689,7 @@ discard block |
||
| 689 | 689 | */ |
| 690 | 690 | public function getProductGridOriginalPriceXpath($count) |
| 691 | 691 | { |
| 692 | - return sprintf($this->productGridBaseXpath . $this->productGridOriginalPriceXpath, $count); |
|
| 692 | + return sprintf($this->productGridBaseXpath.$this->productGridOriginalPriceXpath, $count); |
|
| 693 | 693 | } |
| 694 | 694 | |
| 695 | 695 | /** |
@@ -697,7 +697,7 @@ discard block |
||
| 697 | 697 | */ |
| 698 | 698 | public function getProductGridPriceXpath($count) |
| 699 | 699 | { |
| 700 | - return sprintf($this->productGridBaseXpath . $this->productGridPriceXpath, $count); |
|
| 700 | + return sprintf($this->productGridBaseXpath.$this->productGridPriceXpath, $count); |
|
| 701 | 701 | } |
| 702 | 702 | |
| 703 | 703 | /** |
@@ -705,7 +705,7 @@ discard block |
||
| 705 | 705 | */ |
| 706 | 706 | public function getProductGridWishlistLinkXpath($count) |
| 707 | 707 | { |
| 708 | - return sprintf($this->productGridBaseXpath . $this->productGridWishlistLinkXpath, $count); |
|
| 708 | + return sprintf($this->productGridBaseXpath.$this->productGridWishlistLinkXpath, $count); |
|
| 709 | 709 | } |
| 710 | 710 | |
| 711 | 711 | /** |
@@ -734,7 +734,7 @@ discard block |
||
| 734 | 734 | */ |
| 735 | 735 | public function getLogoutSuccessXpath() |
| 736 | 736 | { |
| 737 | - return$this->translatePlaceholders( $this->logoutSuccessXpath); |
|
| 737 | + return$this->translatePlaceholders($this->logoutSuccessXpath); |
|
| 738 | 738 | } |
| 739 | 739 | |
| 740 | 740 | /** |