You are here

public function TestSubContext::iConfirmPopup in Panopoly 7

@When (I )confirm the popup

File

modules/panopoly/panopoly_test/behat/steps/panopoly_test.behat.inc, line 1127
Provide Behat step-definitions for generic Panopoly tests.

Class

TestSubContext

Code

public function iConfirmPopup() {
  for ($i = 0; $i < 5; $i++) {
    try {
      $this
        ->getSession()
        ->getDriver()
        ->getWebDriverSession()
        ->accept_alert();
      break;
    } catch (NoAlertOpenError $e) {
      sleep(1);
    }
  }
}