Question:
How to use RPA.Desktop.Windows Mouse Click without the need of Open Executable before using it?
Description:
When I call Mouse Click with Automation Id, “ValueError: No dialog open” error is shown.
I need do quick repeatable testing with RPA.Desktop.Windows Automation Id when using code like:
Mouse Click id:500
Although I can do like:
*** Tasks ***
test click
Open Executable C:/abc.exe
Mouse Click id:1
Type Keys hello
it is slow to reopen the application everytime with Open Executable
and when run without Open Executable first, the error “ValueError: No dialog open” is shown.
Unlike RPA.Desktop where the
Click alias:imageAbc
doesn’t need the target application to be opened by itself; I can just manually open the application first, navigate to specific menu, and then only do testing by running the robot against the opened application.
Is there a way to achieve the similar approach for RPA.Desktop.Windows ?
(and I need use both library RPA.Desktop.Windows and RPA.Desktop for targeting elements with Automation Id and elements by image respectively.)