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

Documentation for webdriverio incorrectly says element when it means element id. #4172

Closed
PHUITesting opened this issue Jul 10, 2019 · 5 comments

Comments

@PHUITesting
Copy link

// webdriver.io example
driver.touchScroll({
el: element,
xOffset: 10,
yOffset: 100
});

Error:
Wrong parameters applied for touchScroll
Usage: touchScroll(xoffset, yoffset, element)

Property Description:
"xoffset" (number): the x offset in pixels to scroll by
"yoffset" (number): the y offset in pixels to scroll by
"element" (string): ID of the element where the scroll starts

For more info see https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchscroll

Documentation doesn't specify this is just an ID, it just says element.

@christian-bromann
Copy link
Member

Documentation doesn't specify this is just an ID, it just says element.

Can you propose a fix? I am not quite sure what you are talking about.

@PHUITesting
Copy link
Author

The proposed fix would be updating the docs here - http://v4.webdriver.io/v3.4/api/protocol/touchScroll.html

To include in the description that it has to be an id property of an element, not just an 'element'. I think the error message is more descriptive than the docs.

Can I pull request the docs somehow?

@christian-bromann
Copy link
Member

Can I pull request the docs somehow?

Yes, just press on the Edit button.

@christian-bromann
Copy link
Member

@PHUITesting any luck?

@christian-bromann
Copy link
Member

Closing due to inactivity.

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