Text Box verification not working in Silverlight

4 posts, 1 answers
  1. Aswin
    Aswin avatar
    18 posts
    Member since:
    Feb 2013

    Posted 16 May 2013 Link to this post

    Hi, I'm working on a Test scenario in Silverlight platform. It contains a User comments text-box field. I'm data driving it from Excel, that part works fine. After pasting the comment, I've created a Nested If-Else verify the text content in the text-box, so that accordingly a check-box has to be clicked.

    There are 5 check-boxes, and only one of them has to be checked according to the comment entered in the text-box. But the test is always executing the last Else part in Nested-If...

    P.S: I tested the same with a normal dummy HTML page and it is working perfectly fine. Is there any special steps to be applied or taken for Silverlight? What could be wrong, Help me out please. Thanks !
  2. Answer
    Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 16 May 2013 Link to this post

    Hi Aswin,

    To overcome this, set the EnsureStateIsCurrent property of the verification step to True. This will refresh the DOM tree before performing the verification and should resolve the issue you are experiencing. See this video for a quick demonstration. 
     
    Another option is to change the role of that step. You can do that by right-clicking on the step>Change Role>Set As Wait. Test Studio will wait for that condition to be true (up to the time set) before proceeding with the test (instead of checking once and failing if false). See this article for more information.

    Regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Aswin
    Aswin avatar
    18 posts
    Member since:
    Feb 2013

    Posted 16 May 2013 Link to this post

    That really helped a lot... Thank you very much... :)
  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 17 May 2013 Link to this post

    Hello Aswin,

    You're very welcome! Please contact us again if you have further problems.

    Kind regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top