SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

I am having problems in locating i frame in script for the second time.. #8844

Closed JunaidAKhan closed 6 years ago

JunaidAKhan commented 6 years ago

i have a script where in they are working fine on chrome but with html driver.. i am unable to

unable to switch the frame after refresh.. i am using xpath driver.switchTo().frame(driver.findElement(By.cssSelector("//div/iframe")));

it is able to locate the frame when the script starts, but unable to relocate after refresh .. any work around???