Cannot access elements in iframe-Chrome

4 posts, 0 answers
  1. Ravali
    Ravali avatar
    3 posts
    Member since:
    Jun 2016

    Posted 30 Jun Link to this post

    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 iframe 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 thrown 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!

  2. Ravali
    Ravali avatar
    3 posts
    Member since:
    Jun 2016

    Posted 30 Jun Link to this post

    Chrome version: 51.0.2704.106 m (64-bit)
  3. Ravali
    Ravali avatar
    3 posts
    Member since:
    Jun 2016

    Posted 30 Jun Link to this post

    Chrome version 51.0.2704.106 m (64-bit)
  4. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    251 posts

    Posted 05 Jul Link to this post

    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!
Back to Top