TestProject Forum
Powered by leading experts in the test automation community

Selenium switch focus to frame with no name or ID

When the iframe has a name all i do is:


How can i switch to a frame that has no identifier ?

driver.switchTo().frame() accepts an integer that will return a frame from a list of frames available.

so just try to switch to the first available (depending on how many frames you have in your page):