Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AttributeForm.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Mtf\Client\Element\SimpleElement;
11 use Magento\Mtf\Fixture\FixtureInterface;
12 
17 {
23  protected $saveButton = '#save';
24 
32  public function fill(FixtureInterface $fixture, SimpleElement $element = null)
33  {
34  $browser = $this->browser;
35  $selector = $this->saveButton;
36  $this->browser->waitUntil(
37  function () use ($browser, $selector) {
38  return $browser->find($selector)->isVisible() ? true : null;
39  }
40  );
41  parent::fill($fixture, $element);
42  }
43 
49  public function saveAttributeForm()
50  {
51  $this->browser->find($this->saveButton)->click();
52  $this->browser->switchToFrame();
53  }
54 }
fill(FixtureInterface $fixture, SimpleElement $element=null)
$element
Definition: element.phtml:12