Answer Posted / surya
driver.switchTo().frame() -> using this we can handle frames in selenium webdriver.
There were mainly three ways of switching between Iframes.
•By Frame Index
•By Frame ID or Name
•By Frame WebElement
for more details refer this link:
http://toolsqa.com/selenium-webdriver/interact-with-elements-inside-an-iframe/
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Mention what is the use of x-path?
Write the code to right click an element in selenium?
How will you find an element using selenium?
What is the use of @listener annotation in testng?
What is the function of xpath?
How to conduct database testing with selenium webdriver?
How to handle hidden elements in selenium webdriver?
How to handle alerts in selenium?
How to switch between multiple windows in selenium?
List the parameters that one needs to pass in selenium.
How to scroll web page down or up using selenium webdriver?
How to switch between frames in selenium?
Is it possible to automate the captcha using selenium?
Explain how to iterate through options in test script?
What is datadriven framework and keyword driven?