javascript - How to select/switch to an iframe -
how select/switch iframe (as targeted document) in firefox through selenium webdriver. different ways select iframe with/ without webdriver.
driver.switchto.frame("frameid");
try sample example:
webelement iframeelement = driver.findelement(by.id("if1")); //now use switch command driver.switchto().frame(0); //you can use iframe name //driver.switchto().frame(iframeelement); //switch parent window driver.switchto().defaultcontent(); driver.quit();
follow link understand more:
http://toolsqa.com/selenium-webdriver/handling-iframes-using-selenium-webdriver/
Comments
Post a Comment