Created
January 11, 2014 01:20
-
-
Save alnutile/8365741 to your computer and use it in GitHub Desktop.
Switch to popup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @hidden | |
* | |
* @Then /^I switch to popup by clicking "([^"]*)"$/ | |
*/ | |
public function iSwitchToPopupByClicking($arg1) { | |
$originalWindowName = $this->getMainContext()->getSession()->getWindowName(); | |
$this->setMainWindow(); | |
$this->getMainContext()->getSession()->getPage()->clickLink("$arg1"); //Pressing the withdraw button | |
$popupName = $this->getNewPopup($originalWindowName); | |
//Switch to the popup Window | |
$this->getMainContext()->getSession()->switchToWindow($popupName); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment