Skip to content

Conversation

@TikhomirovSergey
Copy link
Contributor

Change list:

  • Enum SwipeElementDirection is redesigned. The ability to perform the swiping was with offset was added.
  • The swiping using offset from element borders was added to MobileElement.

I have to redesign coordinate calculation and add the new swipe-method
to MobileElement.
@TikhomirovSergey
Copy link
Contributor Author

#160

Copy link
Member

Choose a reason for hiding this comment

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

What's the difference between offset1 and offset2? Do you mean to say that offset1 is offset from the element that swipe starts on, and offset2 is from the element that the swipe ends on?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

offset1 and offset2 are offsets from borders of the element.
offset1 is the offset from the border where the swiping should be started.
offset2 is the offset from the border where the swiping should be ended.
If parameter names are not clear how should I rename them?

@TikhomirovSergey
Copy link
Contributor Author

Ok. I am going to rename offset1 and offset2 to offsetFromStartBorder and offsetFromEndBorder. Is it ok?

@Fanch-
Copy link

Fanch- commented Mar 10, 2015

For me it's clear.

@TikhomirovSergey
Copy link
Contributor Author

Ok.

@TikhomirovSergey
Copy link
Contributor Author

I've improved parameter names and comments.

@Jonahss
Copy link
Member

Jonahss commented Mar 11, 2015

Great :)

Jonahss added a commit that referenced this pull request Mar 11, 2015
@Jonahss Jonahss merged commit ce2ca86 into appium:master Mar 11, 2015
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