Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

handle customized popup in selenium

String newWindow = driver.getWindowHandle();
driver.switchTo().window(newWindow);
//Switching to new window
driver.findElement(By.id("buttonId"));
//Switching back to default/main window
driver.switchTo().defaultContent();
 
PREVIOUS NEXT
Tagged: #handle #customized #popup #selenium
ADD COMMENT
Topic
Name
8+5 =