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

Waiting for an expression to pass?

1 Answer 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 08 Mar 2018, 08:09 PM

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

1 Answer, 1 is accepted

Sort by
0
Nikolay Petrov
Telerik team
answered on 09 Mar 2018, 02:09 PM
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!
Tags
General Discussions
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Nikolay Petrov
Telerik team
Share this question
or