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

iFrame not found in Firefox

3 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike Trill
Top achievements
Rank 1
Mike Trill asked on 03 Dec 2018, 09:02 AM

Using this code, Firefox does not find the iFrame, it is found using IE and Chrome.

 

ArtOfTest.WebAii.Core.Browser frame = ActiveBrowser.Frames[0];

Assert.IsNotNull(frame, "Frame not found");

 

There is only 1 frame in the page and it doesn't have a name.

 

Test studio version 2018.3.1004.0

Firefox 63.0.3 (64 bit)

 

Is this a known issue as I couldn't find anything about this when searching?

 

regards

 

Si

3 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 05 Dec 2018, 04:43 PM
Hi Mike,

Thank you for your prompt query. 

Based on the shared details, I suspect that the frame uses the so called "cross-domain" requests and thus cannot be automated in Firefox due to the limitation about CORS (cross-domain resource sharing). As of our perspective, this is a known limitation for Firefox automation. So, please excuse us for the inconvenience you couldn't find any information on the topic - I will store this feedback for our future releases. 

To double check if my assumption is correct, you can check the source of the frame - if its domain is different than the automated one, then this frame uses a cross-domain request. 

I hope the above information will be helpful for you. Though, in case of further questions, please get back to me. In the case you are not sure about the type of frame you are testing, please provide a sample test which can demonstrate the described issue. 

Thank you in advance. 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Mike Trill
Top achievements
Rank 1
answered on 06 Dec 2018, 10:55 AM

Thanks for the reply, I will disable that one test for firefox, and yes it is cross domain.

regards

 

Si

0
Elena
Telerik team
answered on 07 Dec 2018, 01:23 PM
Hello Si,

I am glad to know my suggestion was correct and we managed to drill down the issue. 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Mike Trill
Top achievements
Rank 1
Answers by
Elena
Telerik team
Mike Trill
Top achievements
Rank 1
Share this question
or