Skip to content
Snippets Groups Projects
Commit 6960229e authored by Natalia Momotenko's avatar Natalia Momotenko
Browse files
parents 6e13f19f 8f7c69a8
No related merge requests found
...@@ -38,7 +38,7 @@ class AttributeForm extends FormTabs ...@@ -38,7 +38,7 @@ class AttributeForm extends FormTabs
* *
* @var string * @var string
*/ */
protected $pageTitle = '.page-title .title'; protected $pageTitle = '.page-title';
/** /**
* Get data of the tabs. * Get data of the tabs.
......
...@@ -40,7 +40,7 @@ class NewCategoryIds extends Form ...@@ -40,7 +40,7 @@ class NewCategoryIds extends Form
* *
* @var string * @var string
*/ */
protected $createCategoryButton = '.action-create'; protected $createCategoryButton = '[data-action="save"]';
/** /**
* Add new category to product. * Add new category to product.
......
...@@ -22,7 +22,7 @@ class ListProduct extends Block ...@@ -22,7 +22,7 @@ class ListProduct extends Block
* *
* @var string * @var string
*/ */
protected $productItem = './/*[contains(@class,"product-item-link") and @title="%s"]/ancestor::li'; protected $productItem = './/*[contains(@class,"product-item-link") and contains(.,"%s")]/ancestor::li';
/** /**
* This member holds the class name of the regular price block. * This member holds the class name of the regular price block.
...@@ -43,14 +43,14 @@ class ListProduct extends Block ...@@ -43,14 +43,14 @@ class ListProduct extends Block
* *
* @var string * @var string
*/ */
protected $productDetailsSelector = '//*[contains(@class, "product details") and .//*[@title="%s"]]'; protected $productDetailsSelector = '//*[contains(@class, "product details") and contains(.,"%s")]';
/** /**
* Product name. * Product name.
* *
* @var string * @var string
*/ */
protected $productTitle = '.product.name [title="%s"]'; protected $productTitle = './/*[@class="product name product-item-name"]/a[text()="%s"]';
/** /**
* Click for Price link on category page. * Click for Price link on category page.
...@@ -173,7 +173,7 @@ class ListProduct extends Block ...@@ -173,7 +173,7 @@ class ListProduct extends Block
*/ */
protected function getProductNameElement($productName) protected function getProductNameElement($productName)
{ {
return $this->_rootElement->find(sprintf($this->productTitle, $productName)); return $this->_rootElement->find(sprintf($this->productTitle, $productName), Locator::SELECTOR_XPATH);
} }
/** /**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment