10 use Magento\Mtf\Client\Element\SimpleElement;
11 use Magento\Mtf\Client\Locator;
12 use Magento\Mtf\Fixture\FixtureInterface;
24 protected $iFrame =
'#create_new_attribute_container';
38 private $isSectionOpened =
'active';
47 public function fill(FixtureInterface $fixture, SimpleElement
$element =
null)
49 $this->browser->switchToFrame(
new Locator($this->iFrame));
50 $browser = $this->browser;
52 $this->browser->waitUntil(
53 function () use ($browser, $selector) {
54 return $browser->find($selector)->isVisible() ? true :
null;
58 $this->browser->switchToFrame();
72 : Locator::SELECTOR_CSS;
73 $sectionClass = $this->_rootElement->find($selector, $strategy)->getAttribute(
'class');
74 if (strpos($sectionClass, $this->isSectionOpened) ===
false) {
75 $this->_rootElement->find($selector, $strategy)->click();
88 $this->browser->switchToFrame(
new Locator($this->iFrame));
89 $this->browser->find($this->saveButton)->click();
90 $this->browser->switchToFrame();
openSection($sectionName)
fill(FixtureInterface $fixture, SimpleElement $element=null)