How to navigate back to current page from Frame in selenium webdriver -


how navigate main page iframe?

example:

driver.switchto.frame(1);  driver.switchto().defaultcontent(); 

is not working. can suggest other way retain control?

you directly switch window using:

driver.switchto().window(driver.windowhandles[0]); 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

java - More than one row with the given identifier was found: 1, for class: com.model.Diagnosis -