Need resources for driver.switchto.frame(WebElement sonso) | Selenium Forum
M
Posted on 20/06/2016
Sir,
[b:2b4wtcuh]
QUERY1[/b:2b4wtcuh]
can i have some resources to use :[b:2b4wtcuh]driver.switchto.frame(WebElement sonso)[/b:2b4wtcuh]?
Not much info i found on javadocs


[b:2b4wtcuh]Query2:[/b:2b4wtcuh]
there are 3 frames as soon as i click a button..
i need to jump to a frame which has a certain element "sonso1"
Now i tried to find id of the frame.... frame has as id ..But when i try to switch via driver.switchTo().frame(sonso);
[b:2b4wtcuh]i get Exception:Exception in thread "main" org.openqa.selenium.NoSuchFrameException: No frame element found by name or id xxxxxxxx[/b:2b4wtcuh]

M
Replied on 20/06/2016

[quote:399gp0an]can i have some resources to use :driver.switchto.frame(WebElement sonso)?
[/quote:399gp0an]
no.

[quote:399gp0an] driver.switchTo().frame(sonso);[/quote:399gp0an]
this is wrong this method only takes ids of frame or index of frames. watch the iframe module its explained there.