| @@ -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())); | 
| @@ -2,7 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Magium\Magento\Navigators\Catalog; | 
| 4 | 4 | |
| 5 | -use Magium\Magento\Navigators\BaseMenu; | |
| 6 | 5 | use Magium\Magento\Themes\AbstractThemeConfiguration; | 
| 7 | 6 | |
| 8 | 7 | abstract class AbstractDefaultProduct | 
| @@ -15,20 +15,20 @@ discard block | ||
| 15 | 15 | /** | 
| 16 | 16 | * @var string The Xpath string that finds the base of the navigation menu | 
| 17 | 17 | */ | 
| 18 | - public $navigationBaseXPathSelector = '//nav[@id="nav"]/ol'; | |
| 18 | + public $navigationBaseXPathSelector = '//nav[@id="nav"]/ol'; | |
| 19 | 19 | |
| 20 | 20 | /** | 
| 21 | 21 | * @var string The Xpath string that can be used iteratively to find child navigation nodes | 
| 22 | 22 | */ | 
| 23 | 23 | |
| 24 | -    public $navigationChildXPathSelector         = 'a[concat(" ",normalize-space(.)," ") = " %s "]/..'; | |
| 24 | +    public $navigationChildXPathSelector = 'a[concat(" ",normalize-space(.)," ") = " %s "]/..'; | |
| 25 | 25 | |
| 26 | 26 | /** | 
| 27 | 27 | * @var string A simple, default path to use for categories. | 
| 28 | 28 | */ | 
| 29 | 29 | |
| 30 | -    public $navigationPathToSimpleProductCategory      = '{{Accessories}}/{{Jewelry}}'; | |
| 31 | -    public $navigationPathToConfigurableProductCategory      = '{{Men}}/{{Shirts}}'; | |
| 30 | +    public $navigationPathToSimpleProductCategory = '{{Accessories}}/{{Jewelry}}'; | |
| 31 | +    public $navigationPathToConfigurableProductCategory = '{{Men}}/{{Shirts}}'; | |
| 32 | 32 | |
| 33 | 33 |      public $defaultSimpleProductName = '{{Blue Horizons Bracelets}}'; | 
| 34 | 34 |      public $defaultConfigurableProductName = '{{Plaid Cotton Shirt}}'; | 
| @@ -37,7 +37,7 @@ discard block | ||
| 37 | 37 | * @var string Xpath to add a Simple product to the cart from the product's page | 
| 38 | 38 | */ | 
| 39 | 39 | |
| 40 | -    public $addToCartXpath          = '//button[@title="{{Add to Cart}}" and contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; | |
| 40 | +    public $addToCartXpath = '//button[@title="{{Add to Cart}}" and contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; | |
| 41 | 41 | |
| 42 | 42 | /** | 
| 43 | 43 | * @var string Xpath to add a Simple product to the cart from the category page | 
| @@ -49,16 +49,16 @@ discard block | ||
| 49 | 49 | * @var string Xpath to find a product's link on a category page. Used to navigate to the product from the category | 
| 50 | 50 | */ | 
| 51 | 51 | |
| 52 | - public $categoryProductPageXpath = '//h2[@class="product-name"]/descendant::a'; | |
| 52 | + public $categoryProductPageXpath = '//h2[@class="product-name"]/descendant::a'; | |
| 53 | 53 | |
| 54 | - public $categorySpecificProductPageXpath = '//h2[@class="product-name"]/descendant::a[.="%s"]'; | |
| 54 | + public $categorySpecificProductPageXpath = '//h2[@class="product-name"]/descendant::a[.="%s"]'; | |
| 55 | 55 | |
| 56 | 56 | |
| 57 | 57 | /** | 
| 58 | 58 | * @var string Xpath used after a product has been added to the cart to verify that the product has been added to the cart | 
| 59 | 59 | */ | 
| 60 | 60 | |
| 61 | -    public $addToCartSuccessXpath        = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; | |
| 61 | +    public $addToCartSuccessXpath = '//li[@class="success-msg" and contains(., "{{was added to your shopping cart}}")]'; | |
| 62 | 62 | |
| 63 | 63 | /** | 
| 64 | 64 | * @var string The base URL of the installation | 
| @@ -72,12 +72,12 @@ discard block | ||
| 72 | 72 | * @var array Instructions in an Xpath array syntax to get to the login page. | 
| 73 | 73 | */ | 
| 74 | 74 | |
| 75 | - public $navigateToCustomerPageInstructions = [ | |
| 75 | + public $navigateToCustomerPageInstructions = [ | |
| 76 | 76 |          [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], | 
| 77 | 77 |          [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{My Account}}"]'] | 
| 78 | 78 | ]; | 
| 79 | 79 | |
| 80 | - public $cartNavigationInstructions = [ | |
| 80 | + public $cartNavigationInstructions = [ | |
| 81 | 81 |          [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], | 
| 82 | 82 |          [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[contains(concat(" ",normalize-space(@class)," ")," top-link-cart ")]'] | 
| 83 | 83 | ]; | 
| @@ -86,7 +86,7 @@ discard block | ||
| 86 | 86 | * @var array Instructions in an Xpath array syntax to get to the start of the checkout page | 
| 87 | 87 | */ | 
| 88 | 88 | |
| 89 | - public $checkoutNavigationInstructions = [ | |
| 89 | + public $checkoutNavigationInstructions = [ | |
| 90 | 90 |          [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="header-minicart"]/descendant::span[.="{{Cart}}"]'], | 
| 91 | 91 |          [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="minicart-actions"]/descendant::a[@title="{{Checkout}}"]'] | 
| 92 | 92 | ]; | 
| @@ -95,7 +95,7 @@ discard block | ||
| 95 | 95 | * @var array Instructions in an Xpath array syntax to get to the customer registration page | 
| 96 | 96 | */ | 
| 97 | 97 | |
| 98 | - public $registrationNavigationInstructions = [ | |
| 98 | + public $registrationNavigationInstructions = [ | |
| 99 | 99 |          [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], | 
| 100 | 100 |          [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{Register}}"]'] | 
| 101 | 101 | ]; | 
| @@ -104,7 +104,7 @@ discard block | ||
| 104 | 104 | * @var array Instructions in an Xpath array syntax to get to the customer registration page | 
| 105 | 105 | */ | 
| 106 | 106 | |
| 107 | - public $logoutNavigationInstructions = [ | |
| 107 | + public $logoutNavigationInstructions = [ | |
| 108 | 108 |          [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@class="account-cart-wrapper"]/descendant::span[.="{{Account}}"]'], | 
| 109 | 109 |          [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//div[@id="header-account"]/descendant::a[@title="{{Log Out}}"]'] | 
| 110 | 110 | ]; | 
| @@ -132,7 +132,7 @@ discard block | ||
| 132 | 132 | public $productListOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; | 
| 133 | 133 | public $productListPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; | 
| 134 | 134 | public $productListWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; | 
| 135 | -    public $productListAddToCartLinkXpath     = '/descendant::p[@class="action"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; | |
| 135 | +    public $productListAddToCartLinkXpath = '/descendant::p[@class="action"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; | |
| 136 | 136 | |
| 137 | 137 |      public $productGridBaseXpath             = '//ul[contains(concat(" ",normalize-space(@class)," ")," products-grid ")]/li[%d]'; | 
| 138 | 138 | public $productGridDescriptionXpath = '/*[.="no description in the grid view"]'; | 
| @@ -143,15 +143,15 @@ discard block | ||
| 143 | 143 | public $productGridOriginalPriceXpath = '/descendant::div[@class="price-box"]/descendant::p[@class="old-price"]/descendant::*[@class="price"]'; | 
| 144 | 144 | public $productGridPriceXpath = '/descendant::div[@class="price-box"]/descendant::*[@class="regular-price" or @class="special-price"]/descendant::span[@class="price"]'; | 
| 145 | 145 | public $productGridWishlistLinkXpath = '/descendant::ul[@class="add-to-links"]/descendant::a[@class="link-wishlist"]'; | 
| 146 | -    public $productGridAddToCartLinkXpath     = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; | |
| 146 | +    public $productGridAddToCartLinkXpath = '/descendant::div[@class="actions"]/descendant::button[contains(concat(" ",normalize-space(@class)," ")," btn-cart ")]'; | |
| 147 | 147 | |
| 148 | 148 | public $productCollectionViewModeXpath = '//p[@class="view-mode"]/strong'; | 
| 149 | 149 | public $productCollectionSortByXpath = '//div[@class="sort-by"]/descendant::option[@selected]'; // We select using the div, not the title because the title may be translated | 
| 150 | 150 | public $productCollectionShowCountXpath = '//div[@class="limiter"]/descendant::option[@selected]'; // dittos | 
| 151 | - public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; | |
| 151 | + public $productCollectionShowCountOptionsXpath = '//div[@class="limiter"]/descendant::option'; | |
| 152 | 152 |      public $productCollectionProductCountXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," pager ")]/descendant::p[contains(concat(" ",normalize-space(@class)," ")," amount ")]'; | 
| 153 | 153 | |
| 154 | -    public $layeredNavigationBaseXpath        = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; | |
| 154 | +    public $layeredNavigationBaseXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," block-layered-nav ")]'; | |
| 155 | 155 | |
| 156 | 156 | public $searchInputXpath = '//input[@id="search"]'; | 
| 157 | 157 | public $searchSubmitXpath = '//form[@id="search_mini_form"]/descendant::button[@title="Search"]'; | 
| @@ -164,7 +164,7 @@ discard block | ||
| 164 | 164 | public $configurableProductLabelXpath = '//div[@id="product-options-wrapper"]/descendant::label'; | 
| 165 | 165 | public $configurableSwatchSelectorXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]'; | 
| 166 | 166 | public $configurableSwatchImgXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/descendant::img'; | 
| 167 | -    public $configurableSwatchNotAvailableXpath =  '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/ancestor::li[contains(concat(" ",normalize-space(@class)," ")," not-available ")]'; | |
| 167 | +    public $configurableSwatchNotAvailableXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::a[%d]/ancestor::li[contains(concat(" ",normalize-space(@class)," ")," not-available ")]'; | |
| 168 | 168 | |
| 169 | 169 | public $configurableProductOptionXpath = '(%s)[%d]/ancestor::dt/following-sibling::dd[1]/descendant::option[starts-with(., "%s")]'; | 
| 170 | 170 | |
| @@ -173,17 +173,17 @@ discard block | ||
| 173 | 173 |      public $breadCrumbMemberXpath = '/descendant::a[concat(" ",normalize-space(.)," ")=" {{%s}} "]'; | 
| 174 | 174 | public $breadCrumbSelectorXpath = '/descendant::a[%d]'; | 
| 175 | 175 | |
| 176 | - public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; | |
| 176 | + public $layeredNavigationFilterNameXpath = '//dl[@id="narrow-by-list"]/dt'; | |
| 177 | 177 | |
| 178 | 178 | public $layeredNavigationFilterTypesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li'; | 
| 179 | 179 | public $layeredNavigationSwatchFilterTypesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li'; | 
| 180 | 180 | public $layeredNavigationFilterLinkXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::li/descendant::a'; | 
| 181 | - public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; | |
| 181 | + public $layeredNavigationFilterNameElementXpath = '//dl[@id="narrow-by-list"]/dt[normalize-space(.) = "%s"]'; | |
| 182 | 182 | |
| 183 | 183 |      public $layeredNavigationSwatchAppliesXpath = '//dt[.="%s"]/following-sibling::dd[1]/descendant::ol[contains(concat(" ",normalize-space(@class)," ")," configurable-swatch-list ")]'; | 
| 184 | 184 | public $layeredNavigationSwatchTitleAttribute = 'title'; | 
| 185 | 185 | |
| 186 | - public $storeSwitcherInstructionsXpath = [ | |
| 186 | + public $storeSwitcherInstructionsXpath = [ | |
| 187 | 187 | [\Magium\WebDriver\WebDriver::INSTRUCTION_MOUSE_CLICK, '//select[@id="select-language"]/descendant::option[contains(@value,"___store=%s")]'], | 
| 188 | 188 | ]; | 
| 189 | 189 | |
| @@ -23,16 +23,16 @@ discard block | ||
| 23 | 23 |  //    public $navigationChildXPathSelector1         = 'li/descendant::span[.="{{%s}}"]'; | 
| 24 | 24 |      public $navigationChildXPathSelector         = 'a[concat(" ",normalize-space(.)," ") = " {{%s}} "]/..'; | 
| 25 | 25 | |
| 26 | - public $adminPopupMessageContainerXpath = '//*[@id="message-popup-window"]'; | |
| 27 | - public $adminPopupMessageCloseButtonXpath = '//*[@id="message-popup-window"]/descendant::*[@title="close"]'; | |
| 26 | + public $adminPopupMessageContainerXpath = '//*[@id="message-popup-window"]'; | |
| 27 | + public $adminPopupMessageCloseButtonXpath = '//*[@id="message-popup-window"]/descendant::*[@title="close"]'; | |
| 28 | 28 | |
| 29 | -    public $systemConfigTabsXpath                = '//ul[@id="system_config_tabs"]/descendant::a[concat(" ",normalize-space(.)," ") = " {{%s}} "]'; | |
| 30 | -    public $systemConfigSectionToggleXpath             = '//form[@id="config_edit_form"]/descendant::div[contains(concat(" ",normalize-space(@class)," ")," section-config ")]/descendant::a[.="{{%s}}"]'; | |
| 31 | -    public $systemConfigSectionDisplayCheckXpath            = '//legend[.="{{%s}}"]/ancestor::fieldset'; | |
| 32 | -    public $systemConfigToggleEnableXpath            = '//legend[.="{{%s}}"]/../descendant::td[concat(" ",normalize-space(.)," ") = " {{Enabled}} "]/../td/descendant::select/option[@value="%d"]'; | |
| 29 | +    public $systemConfigTabsXpath = '//ul[@id="system_config_tabs"]/descendant::a[concat(" ",normalize-space(.)," ") = " {{%s}} "]'; | |
| 30 | +    public $systemConfigSectionToggleXpath = '//form[@id="config_edit_form"]/descendant::div[contains(concat(" ",normalize-space(@class)," ")," section-config ")]/descendant::a[.="{{%s}}"]'; | |
| 31 | +    public $systemConfigSectionDisplayCheckXpath = '//legend[.="{{%s}}"]/ancestor::fieldset'; | |
| 32 | +    public $systemConfigToggleEnableXpath = '//legend[.="{{%s}}"]/../descendant::td[concat(" ",normalize-space(.)," ") = " {{Enabled}} "]/../td/descendant::select/option[@value="%d"]'; | |
| 33 | 33 | |
| 34 | -    public $xTreeRootXpath                          = '//ul[contains(concat(" ",normalize-space(@class)," ")," x-tree-root-ct ")]/div/li[contains(concat(" ",normalize-space(@class)," ")," x-tree-node ")]/div/a'; | |
| 35 | -    public $xTreeNamedRootXpath                          = '//ul[contains(concat(" ",normalize-space(@class)," ")," x-tree-root-ct ")]/div/li[contains(concat(" ",normalize-space(@class)," ")," x-tree-node ")]/div/a[contains(concat("---",normalize-space(.)), "---{{%s}} (")]'; | |
| 34 | +    public $xTreeRootXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," x-tree-root-ct ")]/div/li[contains(concat(" ",normalize-space(@class)," ")," x-tree-node ")]/div/a'; | |
| 35 | +    public $xTreeNamedRootXpath = '//ul[contains(concat(" ",normalize-space(@class)," ")," x-tree-root-ct ")]/div/li[contains(concat(" ",normalize-space(@class)," ")," x-tree-node ")]/div/a[contains(concat("---",normalize-space(.)), "---{{%s}} (")]'; | |
| 36 | 36 |      public $xTreeChildXpath                          = 'ul/li[contains(concat(" ",normalize-space(@class)," ")," x-tree-node ")]/div/a/span[contains(concat("---",normalize-space(.)), "---{{%s}} (")]/..'; | 
| 37 | 37 | public $xTreeChildNodePrefixXpath = '/../..'; | 
| 38 | 38 |      public $xTreeChildNodeExpandPrefixXpath          = '/../img[contains(concat(" ",normalize-space(@class)," ")," x-tree-ec-icon ")]'; | 
| @@ -41,12 +41,12 @@ discard block | ||
| 41 | 41 | |
| 42 | 42 |      public $systemConfigSaveSuccessfulXpath          = '//li[@class="success-msg"]/descendant::span[.="{{The configuration has been saved}}."]'; | 
| 43 | 43 | |
| 44 | -    public $testLoggedInAtBaseUrl                     = '//a[@class="active"]/span[.="{{Dashboard}}"]'; | |
| 44 | +    public $testLoggedInAtBaseUrl = '//a[@class="active"]/span[.="{{Dashboard}}"]'; | |
| 45 | 45 | |
| 46 | 46 |      public $tableButtonXpath                         = '//table[@class="actions"]/descendant::span[.="{{%s}}"]'; | 
| 47 | 47 | |
| 48 | 48 |      public $selectOrderXpath                         = '//table[@id="sales_order_grid_table"]/descendant::td[concat(" ",normalize-space(.)," ") = " %s "]/../td/a[.="{{View}}"]'; | 
| 49 | -    public $selectCustomerXpath                         = '//table[@id="customerGrid_table"]/descendant::td[concat(" ",normalize-space(.)," ") = " %s "]/../td/a[.="{{Edit}}"]'; | |
| 49 | +    public $selectCustomerXpath = '//table[@id="customerGrid_table"]/descendant::td[concat(" ",normalize-space(.)," ") = " %s "]/../td/a[.="{{Edit}}"]'; | |
| 50 | 50 | |
| 51 | 51 |      public $systemConfigSettingLabelXpath            = '//td[@class="label"]/label[.=" {{%s}}"]'; | 
| 52 | 52 | |
| @@ -57,12 +57,12 @@ discard block | ||
| 57 | 57 | |
| 58 | 58 | public $guaranteedPageLoadedElementDisplayedXpath = '//div[@class="footer"]'; | 
| 59 | 59 | |
| 60 | - public $successfulActionXpath = '//li[@class="success-msg"]'; | |
| 60 | + public $successfulActionXpath = '//li[@class="success-msg"]'; | |
| 61 | 61 | public $errorActionXpath = '//li[@class="error-msg"]'; | 
| 62 | 62 | |
| 63 | 63 | public $shippingCarrierXpath = '//select[@name="tracking[%d][carrier_code]"]'; | 
| 64 | - public $shippingTitleXpath = '//input[@name="tracking[%d][title]"]'; | |
| 65 | - public $shippingTrackingNumberXpath = '//input[@name="tracking[%d][number]"]'; | |
| 64 | + public $shippingTitleXpath = '//input[@name="tracking[%d][title]"]'; | |
| 65 | + public $shippingTrackingNumberXpath = '//input[@name="tracking[%d][number]"]'; | |
| 66 | 66 | |
| 67 | 67 |      public $formButtonXpath = '//div[@class="content-header"]/p[@class="form-buttons"]/descendant::span[.="{{%s}}"]'; | 
| 68 | 68 | |
| @@ -243,7 +243,7 @@ discard block | ||
| 243 | 243 | * @var string | 
| 244 | 244 | */ | 
| 245 | 245 | |
| 246 | -    public $searchButtonText                         = '{{Search}}'; | |
| 246 | +    public $searchButtonText = '{{Search}}'; | |
| 247 | 247 | |
| 248 | 248 | /** | 
| 249 | 249 | * @return Translator |