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 -

c# - Resource not found error -