Throw exception time [Customer ID: RX714188 INNOVID]

Class library usage, coding and language questions.
User avatar
Posts: 7
Joined: Tue May 28, 2013 9:24 am

Throw exception time [Customer ID: RX714188 INNOVID]

Post by amirb » Thu Aug 22, 2013 6:02 pm


I'm encountering a scenario when i using the Exist() method to check if a certain repository item exist.
The expected is being thrown only after 1 minute.
Is it possible to change the throw exception time to be lower (like 20 seconds) using some Ranorex IDE configuration or code? and if so can you please provide an example?

Best Regards
Amir Buchvalter

Certified Professional
Certified Professional
Posts: 83
Joined: Fri Jul 12, 2013 2:41 pm

Re: Throw exception time [Customer ID: RX714188 INNOVID]

Post by kmck » Thu Aug 22, 2013 9:07 pm

Hello Amirb,

The Exists method takes the path and search timeout. There are a few other options in the API that allow for exception to throw on fail, Booleans, etc. I've noticed that I've also had to lower the repository item's search timeout in order to get the exist method search timeout to run faster.

Exists Method(path, searchTimeout) - ... sts_14.htm