Quantcast
Channel: Silk Test - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 625

check in message appears

$
0
0

I am testing a desktop application using SilkTest Workbench. At one point in the application a message may appear requesting to press Yes or No.

How do I check if the message appeared or not.

I have tried using

if Dialog("caption").exists then

code to press button

end if

 

This works when the message does appear but not when it doesn't. I also tried .waitforObject bt don't seem to know what to check for with this and how to know if the message appeared or not.

 Is there a better way? Any code examples would be appreciated.


Viewing all articles
Browse latest Browse all 625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>