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

Element methods don't operate on the element #97

Closed
zoechi opened this issue Aug 31, 2015 · 2 comments
Closed

Element methods don't operate on the element #97

zoechi opened this issue Aug 31, 2015 · 2 comments

Comments

@zoechi
Copy link
Contributor

zoechi commented Aug 31, 2015

https://github.com/google/webdriver.dart/blob/master/lib/src/web_element.dart#L36
and similar methods of WebElement don't seem to be related to the element they are called on.

WebElement.click() is forwarded to WebDriver._post('click').
I would expect it to move the mouse to the element or select the element before the click is invoked.

@DrMarcII
Copy link
Contributor

DrMarcII commented Sep 1, 2015

WebElement.click() actually eventually calls WebDriver.post('element/' + id + '/click) which is what it is supposed to do to click on an element (the call to _post at the line in question is a call to WebDriverBase._post).

@DrMarcII DrMarcII closed this as completed Sep 1, 2015
@zoechi
Copy link
Contributor Author

zoechi commented Sep 1, 2015

After a bit of debugging I think I got it. Thanks for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants