9 use Magento\Mtf\Client\Locator;
66 protected $loader =
'//ancestor::body/div[@data-role="loader"]';
73 protected $loaderOld =
'//ancestor::body/div[@id="loading-mask"]';
80 $this->_rootElement->find($this->backButton)->click();
88 $this->waitForElementVisible($this->resetButton);
89 $this->_rootElement->find($this->resetButton)->click();
97 $this->waitForElementVisible($this->saveAndContinueButton);
98 $this->_rootElement->find($this->saveAndContinueButton)->click();
99 $this->waitForElementNotVisible(
'.popup popup-loading');
100 $this->waitForElementNotVisible(
'.loader');
108 $this->waitForElementVisible($this->saveButton);
109 $this->_rootElement->find($this->saveButton)->click();
110 $this->waitForElementNotVisible($this->spinner);
111 $this->waitForElementNotVisible($this->loader, Locator::SELECTOR_XPATH);
112 $this->waitForElementNotVisible($this->loaderOld, Locator::SELECTOR_XPATH);
118 public function delete()
120 $this->waitForElementNotVisible($this->spinner);
121 $this->waitForElementNotVisible($this->loader, Locator::SELECTOR_XPATH);
122 $this->waitForElementNotVisible($this->loaderOld, Locator::SELECTOR_XPATH);
123 $this->waitForElementVisible($this->deleteButton);
124 $this->_rootElement->find($this->deleteButton)->click();
134 return $this->_rootElement->find($this->deleteButton)->isVisible();