How to switch between frames in Selenium WebDriver using Java

后端 未结 7 1709
轮回少年
轮回少年 2020-11-22 13:31

I am using java with WebDriver.I have to switch between two frames. I have recorded the test case in selenium IDE and in that I got the values as selectFrame relative=top se

相关标签:
7条回答
  • 2020-11-22 14:07

    to switchto a frame:

    driver.switchTo.frame("Frame_ID");
    

    to switch to the default again.

    driver.switchTo().defaultContent();
    
    0 讨论(0)
提交回复
热议问题