Validate.NotExists(repo.FormSelect_Procedure.SecondRowN,"Actual: There is no 2nd record",false);But got exception:
Ranorex.ElementNotFoundException: Failed to find item 'FormSelect_Procedure.SecondRowN' within the specified timeout of 1000ms. ---> Ranorex.ElementNotFoundException: No element found for path 'element/element[@controlid='1013']/rawtext[@column='0' and @row='2']'.
--- End of inner exception stack trace ---
at Ranorex.Core.Repository.RepoItemInfo.Find[T](Boolean findSingle, Boolean throwException)
at Ranorex.Core.Repository.RepoItemInfo.CreateAdapter[T](Boolean throwException)
I expected, that method NonExists designed to handle situations, when elements doesn't exists and not cause exception. However, found it's not true.
So, can someone explain - do i understand correctly role of NonExists method?
Or is it special case, because i use GDI plug-in for that element? It's XPath:
element/element[@controlid='1013']/rawtext[@column='0' and @row='2']Also, even as i put "false" argument to Validate.NotExists method - it still throws exception, which stops the script. (i know, i can put Try-catch block, but what the goal of NonExists then?