Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking on a button using visual automation does not work - some ideas #361

Closed
sadimoodi opened this issue Feb 19, 2022 · 2 comments
Closed
Labels

Comments

@sadimoodi
Copy link

Hello,
Since using the xpath of a button does not allow me to click on it,i tried visual automation:
r.click('button.PNG')
i am getting an error [RPA][ERROR] - cannot find button.PNG
The image DOES exist inside the directory.
funny enough: when using a random image name: i get a success message! but nothing clicks
whats wrong?!

@ck81
Copy link

ck81 commented Mar 25, 2022

Please refer to #170

Additional note:

  • Double check your screen resolution.
  • Try screen resolution of 100%. It should work
  • Once you're certain that 100% works, then you can try other resolutions. Some laptops will work. Some will not
  • If you have 2 monitors, do not capture on one monitor and then use the image on another. The screen resolutions for the 2 monitors might be different
  • Make sure your image is on your first monitor

@kensoh
Copy link
Member

kensoh commented Apr 17, 2022

Thanks @ck81 for sharing your tips!

Hi @sadimoodi adding on, if you are using Mac, try checking if it is due to Retina display issue and the solution here.

If a random image name is used and the file does not exist, the package will look for the UI element with the file name. Eg r.click('File.png') will click on the File menu on the screen, if there is the word "File" on the screen.

@kensoh kensoh added the query label Apr 17, 2022
@kensoh kensoh changed the title Clicking on a button using visual automation does not work Clicking on a button using visual automation does not work - some ideas Apr 17, 2022
@kensoh kensoh closed this as completed Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants