I want to know how FindSingle really works.
Env:
- Win 10
- Ranorex 6
- Desktop app
Can somebody explain that thing in case of following examples:
Ex #1:
Code: Select all
SomeBtn.Click();//That click opens form "MyForm". The form opens but it is freezed for 20 sec
Host.Local.FindSingle<Button>("/form[@class='MyForm']/Button[@class='BestClass']", Duration.FromMilliseconds(30000));
Ex #2:
Code: Select all
SomeBtn.Click();//That click opens form "MyForm". The form opens but it is freezed for 20 sec
Host.Local.FindSingle<Button>("/form[@class='MyForm']/Button[@class='BestClass']", Duration.FromMilliseconds(10000[));
As I understand the form is present, but it has property Valid = false, the same for button(BestClass). Is my assumption true? Would Ranorex clicks on button when form is freezed or it will wait?
How FindSingle technically works? Ranorex gets the app element tree ones and then trying to find needed element in that tree for few times? Or it is trying to re-search all tree few times?
Can somebody explain all things?