Unable to retrieve child on position 2 under a parent with partial path

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.

Appreciate any help

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.

Even when using a recorder you need to consider locator depth when using it in actions. There is improvement planned for that `RPA.Windows`: Improve windows-record so it displays the depth as well · Issue #937 · robocorp/rpaframework · GitHub

@UmFpdm8 @raivo Able to get the element using Get Element by passing root element attribute.
Thanks a lot

1 Like