Showing results for 
Search instead for 
Did you mean: 

wait for string

New Contributor

wait for string


i has desktop app.

when i click start i get strings about action that happend. and the same string replace to succeed or fail

for example:

start copy files >> copy files succeed \ copy files fail

i want to wait for string to appear, than i want to ask if it succeed or fail.


when i use waitProperty it fall if string dosen't appear.





Community Hero

Re: wait for string

Hi Amihai,


As a possible option, you may try to use .WaitProperty() method and provide a regular expression so the method will wait until either successful or failure message appears.


[Community Expert Group]
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
New Contributor

Re: wait for string

hey alex,

thanks for replay.


but if i use waitProperty if it not show i get error and the runs stop.

can i use contain inside findChild? and on it i will do wait.

Community Hero

Re: wait for string

Would it be possible to see the code you are executing?  WaitProperty should not "fail" necessarily...  If you're getting an error, it would be good to know what the error is, what code was executing it, etc.

Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
New Here?
Join us and watch the welcome video:
Top Kudoed Authors
Join the September Hub-bub to show off, learn and win