Waiting for an expression to pass?

2 posts, 0 answers
  1. Steve
    Steve avatar
    1885 posts
    Member since:
    Dec 2008

    Posted 08 Mar Link to this post

    What I need to do is something to the effect of

    "Wait until HtmlFindExpression("role=gridcell","aria-selected=false").Count() > 0" ...then continue on.

    I have a kendo scheduler bound to a datasource and I need to have the test step validate there are events in the scheduler.  The callback might be 50ms or 5 seconds, it's not reliable enough in a test list to set a simple wait.

    Suggestions? :D

  2. Nikolay Petrov
    Admin
    Nikolay Petrov avatar
    308 posts

    Posted 09 Mar Link to this post

    Hello Steve,

    Once the find expressions are used to locate elements I supposed that you could use "WaitForElement" method of the ActiveBrowser to have the proper element loaded before to continue the test execution. I attached a sample code line for a reference.

    I hope this information is helpful.

    Best Regards,
    Nikolay Petrov
    Progress Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top