cancel
Showing results for 
Search instead for 
Did you mean: 

Alternative selectors for one element

SebastianŁaska
Level 2

Is it possible to use alternative selectors for one element? For example:

UIAutomation and Region for one element. If element is not found by UIAutomation then Region selector is used. 

Or HTML and Region for one element. If element is not found by HTML then Region selector is used



------------------------------
Sebastian Łaska
------------------------------
1 REPLY 1

John__Carter
Staff
Staff
You can't apply different selectors to the same element, but you can could create multiple version of an element, using different spy modes. Eg MyButton-Win32, MyButtom-UIA, MyButton-AA etc. And with a multi-branch wait stage you can detect which version of the element is available.

Bear in mind that in reality a region is just a 'geographical' area of a Win32 element.

------------------------------
John Carter
Professional Services
Blue Prism
------------------------------