-
Notifications
You must be signed in to change notification settings - Fork 8
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
Mouse cursor lose focus when loading or refreshing a new page #21
Comments
To see the mouse move in action, you can enter this in chrome's console |
A temporarily fix to this is to use the original action chain library to reset mouse location
|
To the best of my knowledge, we cannot get the mouse position without triggering mouse events (which is a hacky solution and not human-alike). I think that we want to dive more into Selenium here. If we can grab the current position from Selenium itself, then we have a way to come around this. Alternatively, we should challenge the assumption above. Side remark: Can we track if the mouse position got a reset? |
Thank you for reporting this issue and providing a temporary fix JingerTea. We tried to come up with a solution that is human like and a solid permanent solution, but it is hard to come up with a robust solution that works in all cases. We will investigate using the ideas from above and publish and updated version of HLISA when we found a solution. |
Does this issue still exist in HLISA version 1.5? I cannot reproduce the issue, also not in older versions of HLISA. |
In the example code above, the mouse will move from (0,0) to (100,100). When I refresh the page or load a new page, the mouse will take its current position as (0,0). In this case, (100,100) becomes (0,0), which cause the mouse to lose focus. When I perform the second action, it is moving the mouse from (100,100) to (300,300) instead of (0,0) to (200,200).
Is there any line of code that can reset the mouse back to top left corner, and calibrate it back to (0,0)
The text was updated successfully, but these errors were encountered: