Skip to content

add a duration for scroll for ios #256

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

Merged
merged 6 commits into from
Oct 10, 2018

Conversation

KazuCocoa
Copy link
Member

Not working scroll from one element to another as expected in Appium 1.9.1 using python client with the robotframework-appiumlibrary on the iOS 12 #254

@@ -425,18 +425,19 @@ def create_web_element(self, element_id):
return MobileWebElement(self, element_id)

# convenience method added to Appium (NOT Selenium 3)
def scroll(self, origin_el, destination_el):
def scroll(self, origin_el, destination_el, duration = 250):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the default duration should be at least 600 ms

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any particular reason for default duration to be at least 600 ms, I am guessing you recommend this duration for a smooth scroll.

@KazuCocoa KazuCocoa merged commit 53dedda into appium:master Oct 10, 2018
@KazuCocoa KazuCocoa deleted the add-wait-for-scroll branch October 10, 2018 02:20
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

Successfully merging this pull request may close these issues.

3 participants