Hi,
I am new to windows app automation. Our application is made WPF framework. We are using RPA.Windows for automation.
Whereas the login page is WPF window with webpage inserted inside the window. RPA.Windows library is not recognizing the elements in the Login page. When I inspect the page elements, ** FrameworkId** for the elements is shown as Chrome. Below is the screenshot.
You donât need to use quotation marks if your selector does not contain spaces. The actual selector depends on your application structure, for example you should consider element depth. You can find more information from documentation RPA.Windows library | Robocorp documentation
I tried with and without quotation marks, same error shown.
Also I tried using Print Tree to get the element depth, but the output of âPrint Treeâ does not have the elements of the login page, say Email element is not found
Used the path with Click keyword Click path: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 it throws error as ElementNotFound: Unable to retrieve child on position 2 under a parent with partial path â9â
It seems like youâre dealing with a hybrid application that has both WPF and web components. In this case, you might need to use a combination of libraries to interact with different parts of your application.
For the WPF part of your application, you can continue using the RPA.Windows library. However, for the web components, you might need to use a library that can interact with web elements, such as RPA.Browser.Selenium. This library can interact with elements in a web page, even if itâs embedded inside a WPF application.
Hereâs a simple example of how you can use RPA.Browser.Selenium to interact with web elements:
@Kartheek.Battu1106
Thanks for sharing the info.
Web elements were nested inside the app, I am able to interact with the elements using Get Element keyword by passing root_element attribute