2gis / winphonedriver

DEPRECATED Please see https://github.com/2gis/Winium.Mobile for latests releases. Selenium Driver for automated testing of Windows Phone 8.1 Silverlight applications.
14 stars 3 forks source link

Scroll feature is not working using executescript() #83

Closed gouthamsam closed 7 years ago

gouthamsam commented 7 years ago

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

Thanks

NickAb commented 7 years ago

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 commented 7 years ago

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)