in Selenium by
Q:
Explain how you can handle frames using Selenium 2.0 ?

▼ Show 1 Answer

0 votes
by

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”

Selenium
Learn More with Madanswer

Related questions

0 votes
asked Aug 19, 2019 in Selenium by rahulsharma
...