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

Scroll feature is not working using executescript() #83

Closed
gouthamsam opened this issue Dec 7, 2016 · 2 comments
Closed

Scroll feature is not working using executescript() #83

gouthamsam opened this issue Dec 7, 2016 · 2 comments

Comments

@gouthamsam
Copy link

Unknown 'mobile:' script command. See https://github.com/2gis/winphonedriver/wiki/Command-Execute-Script for supported commands
getAppiumDriver().executeScript("mobile: scroll", scrollObject);

Thanks

@NickAb
Copy link
Contributor

NickAb commented Dec 8, 2016

It is Appium specific executeScript command that is not implemented in winphonedriver.

If you want this command implemented, please file an issue at https://github.com/2gis/Winium.Mobile.

We merged windowsphonedriver and Winium.StoreApps projects, any further development will be made in Winium.Mobile repo, this repo is discontinued.

@NickAb
Copy link
Contributor

NickAb commented Dec 19, 2016

See Winium.Mobile release https://github.com/2gis/Winium.Mobile/releases/tag/v1.7.1

Here is docs on how to use ExecuteScript to scroll and more https://github.com/2gis/Winium.Mobile/wiki/Command-Execute-Script

list_box = self.driver.find_element_by_id("ListBox")
scroll_info = {"v": "smallIncrement", "count": 10}
self.driver.execute_script("automation: ScrollPattern.Scroll", list_box, scroll_info)

@NickAb NickAb closed this as completed Dec 19, 2016
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