I tried to use the Validate.Exists method to validate if a table is empty.
I check if the first row could not be found. Within the Ranorex API I found the Validate.Exists Method.
Following codesnipped I use to validate:
Code: Select all
bool exists = Validate.Exists(<RepoItem>, "No entry '{0}'", false);
In my case an exception is thrown, no matter if I put there false or true...
The same happens if I use the method Validate.NotExists. Could you please help me how to verify if an element is not there?
Thank you
Anja