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

Cannot access elements in iframe-Chrome

3 Answers 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ravali
Top achievements
Rank 1
Ravali asked on 30 Jun 2016, 03:37 PM

OS: Windows 10

Firefox Version 47.0

TTS version 2016.1.330.0

Hi,

Am using above configurations for automation.

In my application, there is  an iframe.

Problem is - could not access elements in this  using chrome browser.

The Same code is working in Firefox but not in Chrome.

Below is my code:

ActiveBrowser.WaitForFrame(new FrameInfo("creditCardComponent", "", "~/creditcard.jsp", "", 0, false, false, ""), 20000);
Browser ccframeinfoo = ActiveBrowser.Frames.ById("creditCardComponent");
HtmlInputText ccno1 = ccframeinfoo.Find.ById<HtmlInputText>("ccno1-inputEl"); ccno1.Text = "xxxx";
HtmlInputText ccno2 = ccframeinfoo.Find.ById<HtmlInputText>("ccno2-inputEl"); ccno2.Text = "xxxx";
HtmlInputText ccno3 = ccframeinfoo.Find.ById<HtmlInputText>("ccno3-inputEl"); ccno3.Text = "xxxx";
HtmlInputText ccno4 = ccframeinfoo.Find.ById<HtmlInputText>("ccno4-inputEl"); ccno4.Text = "xxxx";

Error: Exception executing coded step: 'Enter the card number'.

InnerException:
System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Int32 timeout)
   at ArtOfTest.WebAii.Core.Browser.WaitForFrame(FrameInfo frameInfo, Int32 timeout)

FYI- used ActiveBrowser.WaitUntilReady(); and  ActiveBrowser.RefreshDomTree(); but did not solve my issue.

Can you please help me on this issue.

Thanks in Advance!

3 Answers, 1 is accepted

Sort by
0
Ravali
Top achievements
Rank 1
answered on 30 Jun 2016, 03:40 PM
Chrome version: 51.0.2704.106 m (64-bit)
0
Ravali
Top achievements
Rank 1
answered on 30 Jun 2016, 03:41 PM
Chrome version 51.0.2704.106 m (64-bit)
0
Elena
Telerik team
answered on 05 Jul 2016, 12:12 PM
Hi Ravali,

Thank you for contacting Telerik Support Team. 

Please upgrade to the latest Test Studio release R2 2016.2.630.0 distributed last week and try to access these elements again. Please ensure all Chrome instances are closed at the time of both recording and execution. 

Please let me know if you would need any further assistance. I hope to hear from you soon! 

Regards,
Elena Tsvetkova
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Ravali
Top achievements
Rank 1
Answers by
Ravali
Top achievements
Rank 1
Elena
Telerik team
Share this question
or