// There are 2 alerts to accept before we can get the content of the page.
$session->getDriver()->getWebdriverSession()->accept_alert(); $session->getDriver()->getWebdriverSession()->accept_alert();
// Ensure that any changes to variables in the other thread are picked up.
$this->refreshVariables();
// Replace original page output with new output from redirected page(s).
if($new = $this->checkForMetaRefresh()){ $out = $new; // We are finished with all meta refresh redirects, so reset the counter.