10 use Magento\Mtf\Client\Locator;
43 protected $header =
'header.page-content, [data-ui-id="page-actions-toolbar-content-header"]';
52 $content = $this->_rootElement->find($this->contentForm, Locator::SELECTOR_CSS);
53 $toggleButton = $this->_rootElement->find($this->toggleButton, Locator::SELECTOR_CSS);
64 public function getSystemVariables()
68 $contentTab = $this->
getTab(
'content');
70 $contentTab->clickInsertVariable();
71 $config = $contentTab->getWysiwygConfig();
73 return $config->getAllVariables();
84 $this->browser->find($this->header)->hover();
86 $tabHeader = $tab->find(
'.//*[contains(@class,"admin__collapsible-title")]', Locator::SELECTOR_XPATH);
87 if ($tabHeader->isVisible() && strpos($tabHeader->getAttribute(
'class'),
'_show') ===
false) {
99 public function isVariablesBlockVisible()
103 $contentTab = $this->
getTab(
'content');
104 $contentTab->clickInsertVariable();
105 $this->waitForElementNotVisible($this->loader);
106 return $contentTab->isVariablesBlockVisible();