Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
GetStartedModal.php
Go to the documentation of this file.
1 <?php
7 
8 use Magento\Mtf\Block\Block;
9 
13 class GetStartedModal extends Block
14 {
21  private $gotItButton = '#btnGetStartedGotIt';
22 
28  public function acceptNotification()
29  {
30  $element = $this->browser->find($this->gotItButton);
31  if ($element->isVisible()) {
32  $element->click();
33  }
34  return $this;
35  }
36 }
$element
Definition: element.phtml:12