I need to accept an IE javascript alert using using the php webdriver for selenium This works for FF and Chrome, but IE fails
Here's the code I'm using:
$web_driver = new WebDriver();
// opens Internet explorer browser
$session = $web_driver->session('internet explorer');
// Navigates to page that has JS alert on close.
$session->open('http://mypage.com/');
// Closes Offer window
$session->deleteWindow();
// Accepts alert to leave page
$session->accept_alert(); // Except accept_alert isn't working correctly in IE
// Closes last window
$session->close();
// Kill session for garbage collection
unset($session);
I know there's this answer for Java and this answer for C#, but am looking for a PHP specific solution since the java methods aren't the same