I am automation WPF application using RPA.Windows library
I want to click on a logo in the windows application. Using windows-record -v command, I got the path of the element as 9|2|1|1|1|2|1|1|1|2|1|1|3|2|1|1|2|1|2|1|1|2|1|1|2|1|1. Used same path to click the element, but i am receiving error as Unable to retrieve child on position 2 under a parent with partial path.
About search depth
The library does element search depth by default to the level of 8.
This means that locator will look into 8 levels of elements under element tree of the root element.
This can lead into situation where element can't be found.
To fix this it is recommended to set root element which can be found within 8 levels OR
defining depth in the locator string to a bigger value,
e.g. id:deeplyNestedButton depth:16.
Useful keywords for setting root element are Control Window, Set Anchor and Get Element.