Searching the forums for the C#/Ranorex equivalent to "if exist" it comes up with the TryFindSingle which I have found examples and the Ranerox support team always suggesting RepoItemInfo.Exists(), so how do I use it?
One place I want to use it is accepting an illegal security certificate error that sometimes pops up (at a predictable point) on the site I am testing. So if this link (or page) is available click it else, move on.
Code: Select all
bool buttonExists = myRepo.MyForm.MyButtonInfo.Exists<Button>(out myButton);
What is <button> and what does "MyButtonInfo" mean exactly? Also does this only work on forms/buttons? I would need it to either check the page or the link to click.
Thanks