How to switch to a frame inside a frame.....? | Selenium Forum
M
Posted on 24/03/2016
Sir, was asked ... how to switch to a frame inside a frame.....?


say by Tagname=iframe... put them in a list , getsize-> switch to a frame1 n now if i have to switch to framex inside frame1...Will approach i wrote before work again?

M
Replied on 25/03/2016

watch module 15.


M
Replied on 25/03/2016

got it sir but here's a query...
=============================

w.get ("**mainpage****");
Driver.switchTo.frame(2);
Driver.switchTo.frame(3);
Driver.switchTo.defaultContent();


----------------------------------------Now where is the control sir ?

Responsive image

M
Replied on 25/03/2016

on main page.


M
Replied on 26/03/2016

Was also asked how to switch from frame3 to frame2 ?
As per image attached.

Responsive image

M
Replied on 27/03/2016

you have to switch default frame then frame 2.


M
Replied on 28/03/2016

driver.switchTo.??????

Sir derz no method called DefaultFrame... Responsive image Responsive image Responsive image Responsive image


M
Replied on 28/03/2016

here use this

http://stackoverflow.com/questions/10879206/how-to-switch-between-frames-in-selenium-webdriver-using-java