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

How to logout from a login page in asp.net -

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