-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Geckodriver is not returning expected element coordinates #331
Comments
If you want to use |
@leonard84: Thanks a lot for this hint. I immediatelly tried the alternative way using Selenium Actions, this is my short example: As you can see, I'm using moveToElement() to get the mouse moved over the SearchField and sendKeys() to enter some search term. Is this maybe still a lack of functionality with the new geckodriver to support Selenium Actions? Thanks and regards |
You say that geckodriver is not returning the expected coordinates, yet you omit what the return value of @leonard84 is correct that WebDriver is meant to return an element’s location relative to the viewport and not the screen and that the actions API is not implemented in geckodriver yet. I’m going to go ahead and close this issue as getting coordinates with geckodriver works to the extent of my knowledge. Please let me know if you think this is a mistake. |
Dear Geckodriver team,
I'm using the following environment:
When I lookup a WebElement, get it's coordinates and move the mouse to this position, it is not moved to the expected place.
I've attached a short example by opening the Google entry page and moving the mouse pointer to the upper left corner of the SearchField.
MoveMouse.java.txt
Additionally I also attached a screenshot of the current result, when executing this script. x-coordinate looks ok, but y-coordinate is way to small.
Any idea, where this might result from?
Thanks and regards
mgavilan
The text was updated successfully, but these errors were encountered: