@@ -24,16 +24,16 @@ def scroll(self, origin_el, destination_el, duration=None):
24
24
"""Scrolls from one element to another
25
25
26
26
Args:
27
- originalEl (`WebElement`): the element from which to being scrolling
28
- destinationEl (`WebElement`): the element to scroll to
27
+ originalEl (`appium.webdriver.webelement. WebElement`): the element from which to being scrolling
28
+ destinationEl (`appium.webdriver.webelement. WebElement`): the element to scroll to
29
29
duration (int): a duration after pressing originalEl and move the element to destinationEl.
30
30
Default is 600 ms for W3C spec. Zero for MJSONWP.
31
31
32
32
Usage:
33
33
driver.scroll(el1, el2)
34
34
35
35
Returns:
36
- `WebElement`
36
+ `appium.webdriver.webelement. WebElement`
37
37
"""
38
38
39
39
# XCUITest x W3C spec has no duration by default in server side
@@ -51,11 +51,11 @@ def drag_and_drop(self, origin_el, destination_el):
51
51
"""Drag the origin element to the destination element
52
52
53
53
Args:
54
- originEl (`WebElement`): the element to drag
55
- destinationEl (`WebElement`): the element to drag to
54
+ originEl (`appium.webdriver.webelement. WebElement`): the element to drag
55
+ destinationEl (`appium.webdriver.webelement. WebElement`): the element to drag to
56
56
57
57
Returns:
58
- `WebElement`
58
+ `appium.webdriver.webelement. WebElement`
59
59
"""
60
60
action = TouchAction (self )
61
61
action .long_press (origin_el ).move_to (destination_el ).release ().perform ()
@@ -74,7 +74,7 @@ def tap(self, positions, duration=None):
74
74
driver.tap([(100, 20), (100, 60), (100, 100)], 500)
75
75
76
76
Returns:
77
- `WebElement`
77
+ `appium.webdriver.webelement. WebElement`
78
78
"""
79
79
if len (positions ) == 1 :
80
80
action = TouchAction (self )
@@ -114,7 +114,7 @@ def swipe(self, start_x, start_y, end_x, end_y, duration=None):
114
114
driver.swipe(100, 100, 100, 400)
115
115
116
116
Returns:
117
- `WebElement`
117
+ `appium.webdriver.webelement. WebElement`
118
118
"""
119
119
# `swipe` is something like press-wait-move_to-release, which the server
120
120
# will translate into the correct action
@@ -140,7 +140,7 @@ def flick(self, start_x, start_y, end_x, end_y):
140
140
driver.flick(100, 100, 100, 400)
141
141
142
142
Returns:
143
- `WebElement`
143
+ `appium.webdriver.webelement. WebElement`
144
144
"""
145
145
action = TouchAction (self )
146
146
action \
0 commit comments