-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
mouseButtonClick() is not working same as suggested actions.click() #4131
Comments
Hey @Eugene753, From you explaination what I can understand is, before you were using "mouseButtonClick()" which was working fine, but now it is deprecated and you are using "actions.click()" which is working sometimes but sometimes it is not. Just wanted to confirm once. |
I would love to work on this. |
@Eugene753 Can You please tell me are you getting any errors if the click is not performed? |
Hey @ParthasarathiMahana, thank you for the reply, there is no specific error in this case, it is basically not performing a click. This is a canvas based app and before clicking it is identifying where object located on the screen before clicking. In the project, version 1.7 nightwatch is used but we trying to upgrade to newer version. We used |
Hey @Eugene753 |
In our case it is a bit different because this is canvas, elements of canvas are not present in the DOM and we have a way to access them but |
@Eugene753 Can you share a code snippet on how you're performing the click action? Ideally, the click action should always perform the click on the coordinates provided (or wherever the mouse pointer is present). So, the problem could also be something else (maybe the pointer is not moving to the object in some cases), although I'm not sure. It would also be very helpful if we could somehow reproduce this issue on our end because it is very difficult to fix something that is not reproducible. |
@garg3133 I can't share code cause this is not my personal project, but in general the code is complicated, with 3 different custom commands nested, but the bottom line that mouseButtonClick() is working but action.click() is not working at the same kind scenario, so I thought someone can help to point out the maybe major differences between those two commands. |
Description
In our automation project we used before mouseButtonClick() to click on elements in canvas based app and it worked as fine. After mouseButtonClick() was depreciated suggested actions.click() is not working the same in all cases. In some cases it clicks and in some it is not working. It looks like Actions API from selenium is not working same mouseButtonClick(). Would it be possible to return this function with new w3c protocols?
Suggested solution
No response
Alternatives / Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: