RE: how to switch over into iframe

I just want to know how to switch over into iframe. Can you please help me here

HTML code
<iframe id=”intern.ius.xdrweframe” width=”100″ height=”100″ frameborder=”0″ =”vault-modal” style=”top: 148.5px;”>
<div class
</body>
</html>

rarajamani Default Asked on November 7, 2014 in Selenium WebDriver.
1 Answers

Hello
To switch to iframe use below method call.

 Driver.switchTo().frame("intern.ius.xdrweframe");

Please note this method has multiple overloads but as you are having Id for the iframe,so this approach should work

Supporter Answered on November 8, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.