Host.Local.FindSingle() does not find an element
Posted: Mon Dec 11, 2017 2:02 pm
Hello!
I've faced an issue related to Host.Local.FindSingle() method. Sometimes it does not find a required element and I don't know why it happens.
I pass to this method almost absolute rxPath and duration 1m, but time to time get 'No element' exception. Also I tried to capture a snapshot of a form during test execution, the required element is present on the form and it's easly found in Spy by the rxPath passed to the method.
Please describe how FindSingle() actually works and what may be wrong. And maybe you have some suggestion why it happens and some tips how to improve the element searching process and make the test more stable.
If you need additional information feel free to ask. Look forward to your reply.
Thanks.
I've faced an issue related to Host.Local.FindSingle() method. Sometimes it does not find a required element and I don't know why it happens.
I pass to this method almost absolute rxPath and duration 1m, but time to time get 'No element' exception. Also I tried to capture a snapshot of a form during test execution, the required element is present on the form and it's easly found in Spy by the rxPath passed to the method.
Please describe how FindSingle() actually works and what may be wrong. And maybe you have some suggestion why it happens and some tips how to improve the element searching process and make the test more stable.
If you need additional information feel free to ask. Look forward to your reply.
Thanks.