10 use Magento\Mtf\Client\Element\SimpleElement;
11 use Magento\Mtf\Client\Locator;
37 private $tierPriceRows =
".//*[@data-index='tier_price']/tbody/tr";
49 $this->_rootElement->find($this->buttonFormLocator)->click();
51 parent::fillOptions(
$option,
$element->find(
'tbody tr:nth-child(' . $key .
')'));
69 $data[$key++] = parent::getDataOptions(
$option,
$element->find(
'tbody tr:nth-child(' . $key .
')'));
87 $rows = $this->_rootElement->getElements($this->tierPriceRows, Locator::SELECTOR_XPATH);
90 foreach ($rows as
$row) {
92 if (
$row->find(
$data[
'value_type'][
'selector'])->getValue() ==
"fixed") {
93 unset(
$data[
'percentage_value']);
95 $fieldsData[] = $this->_getData(
$data,
$row);
110 $this->_rootElement->find($this->buttonFormLocator)->click();
112 $options = $this->_rootElement->find($this->customerGroup, Locator::SELECTOR_XPATH)->getText();
123 return $this->_rootElement->find(
'tbody tr')->isPresent();
133 $this->_rootElement->waitUntil(
135 return $this->isVisible() ? null :
true;
fillOptions(array $fields, SimpleElement $element=null)
getFieldsData($fields=null, SimpleElement $element=null)
getDataOptions(array $fields=null, SimpleElement $element=null)
isVisibleCustomerGroup(CustomerGroup $customerGroup)