This is a migrated thread and some comments may be shown as answers.

Unable to find the elements in IFrame.

1 Answer 33 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bhargav
Top achievements
Rank 1
Bhargav asked on 22 Aug 2014, 10:40 AM
Hi Telerik Admin,


I am trying Telerik mobile testing framework for web testing. As part of it I am unable to find the elements which are there in IFrame. This I frame will be created dynamically  on click a link and loaded with a html page under the current page. Please provide a way to identify elements in the IFrame.

1 Answer, 1 is accepted

Sort by
0
Shtilianov
Telerik team
answered on 22 Aug 2014, 12:21 PM
Hi Bhargav,

You have to use chained queries for iFrames. 
Check this article for more details chained query.

Basically a query for an element which is inside an iFrame should look like this: 
var button2 = [{ 'id': 'Frame1' }, { 'id' : 'Button' }]; this query will find button with id Button that's inside iframe with id Frame1.

Regards,
Shtilianov
Telerik
 
Test your Android and iOS apps against any device or browser with Telerik Mobile Testing. Part of the Telerik Platform.
 
Tags
General Discussions
Asked by
Bhargav
Top achievements
Rank 1
Answers by
Shtilianov
Telerik team
Share this question
or