Aug 19, 2019 in Selenium
Q: Explain how you can handle frames using Selenium 2.0 ?

1 Answer

0 votes
Aug 20, 2019

To bring control on HTML frame you can use “SwitchTo” frame method-

driver.switchTo().frame(“frameName”);

To specify a frame you can use index number

driver.switchTo().frame(“parentFrame.4.frameName”);

This would bring control on frame named- “frameName” of the 4th sub frame names “parentFrame”

Click here to read more about Selenium
Click here to read more about Insurance

Related questions

0 votes
Aug 19, 2019 in Selenium
...