8 use Magento\Mtf\Block\Form;
9 use Magento\Mtf\Client\Element\SimpleElement;
10 use Magento\Mtf\Fixture\FixtureInterface;
22 private $loginButton =
'[type=submit]';
29 private $notificationCloseButton =
'.wm-close-button';
34 public function fill(FixtureInterface $fixture, SimpleElement
$element =
null)
36 $this->closeNotification();
38 return parent::fill($fixture,
$element);
48 $this->closeNotification();
49 $this->_rootElement->find($this->loginButton)->click();
57 private function closeNotification(): void
59 $notification = $this->browser->find($this->notificationCloseButton);
60 if ($notification->isVisible()) {
61 $notification->click();
fill(FixtureInterface $fixture, SimpleElement $element=null)