How to Switch from Parent iframe to child iframe (Both are kendo Windows and having the same class name)

How to Switch from Parent iframe to child iframe (Both are kendo Windows and having the same class name)

i tried with different options like index, webelement, tagname all are not working. i have an exception no such element. Please suggest how to switch to child iframe

Add Comment
4 Answer(s)

By index

Virender

Virender Singh Professor Answered on April 14, 2016.
Add Comment

Hi Virender,

I tried with By Index, didn’t work for me. any alternatives

even i tried with the follwing

driver.switchTo().frame(driver.findElement(By.cssSelector(“iframe[k-window-title=’Survey Question Action’]”)));

raman_racharla Default Answered on April 14, 2016.
Add Comment

Hi Dear,
Please try the xpath element locator in place of cssSelector.
This may help you to switch to child frame.
or
there are 3 methods of frames, use either them.

kajugul Train Answered on April 15, 2016.
Add Comment

findElement(By.xpath(“//iframe[@title=’Survey Question Action’]”));

selQAenthu Train Answered on April 18, 2016.
Add Comment

Your Answer

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