Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
IntegrationFormPageActions.php
Go to the documentation of this file.
1 <?php
8 
10 
16 {
22  protected $saveNewButton = '[data-ui-id="integration-edit-content-save-split-button-button"]';
23 
29  public function saveNew()
30  {
31  $this->_rootElement->find($this->saveNewButton)->click();
32  }
33 
39  public function isAlertPresent()
40  {
41  try {
42  $this->browser->getAlertText();
43  return true;
44  } catch (\Exception $e) {
45  return false;
46  }
47  }
48 
54  public function acceptAlert()
55  {
56  try {
57  while (true) {
58  $this->browser->acceptAlert();
59  }
60  } catch (\Exception $e) {
61  return;
62  }
63  }
64 }