@@ -46,12 +46,12 @@ def tap(self: T, element: Optional['WebElement'] = None, x: Optional[int]
46
46
"""Perform a tap action on the element
47
47
48
48
Args:
49
- element (`appium.webdriver.webelement.WebElement`) : the element to tap
50
- x (:obj:`int`, optional) : x coordinate to tap, relative to the top left corner of the element.
51
- y (:obj:`int`, optional) : y coordinate. If y is used, x must also be set, and vice versa
49
+ element: the element to tap
50
+ x : x coordinate to tap, relative to the top left corner of the element.
51
+ y : y coordinate. If y is used, x must also be set, and vice versa
52
52
53
53
Returns:
54
- `TouchAction`: self instance
54
+ `TouchAction`: Self instance
55
55
"""
56
56
opts = self ._get_opts (element , x , y )
57
57
opts ['count' ] = count
@@ -64,14 +64,14 @@ def press(self: T, el: Optional['WebElement'] = None, x: Optional[int] = None,
64
64
"""Begin a chain with a press down action at a particular element or point
65
65
66
66
Args:
67
- el (:obj:`appium.webdriver.webelement.WebElement`, optional) : the element to press
68
- x (:obj:`int`, optional) : x coordiate to press. If y is used, x must also be set
69
- y (:obj:`int`, optional) : y coordiate to press. If x is used, y must also be set
70
- pressure (:obj:`float`, optional) : [iOS Only] press as force touch. Read the description of `force` property on Apple's UITouch class
67
+ el: the element to press
68
+ x: x coordiate to press. If y is used, x must also be set
69
+ y: y coordiate to press. If x is used, y must also be set
70
+ pressure: [iOS Only] press as force touch. Read the description of `force` property on Apple's UITouch class
71
71
(https://developer.apple.com/documentation/uikit/uitouch?language=objc) for more details on possible value ranges.
72
72
73
73
Returns:
74
- `TouchAction`: self instance
74
+ `TouchAction`: Self instance
75
75
"""
76
76
self ._add_action ('press' , self ._get_opts (el , x , y , pressure = pressure ))
77
77
@@ -82,13 +82,13 @@ def long_press(self: T, el: Optional['WebElement'] = None, x: Optional[int]
82
82
"""Begin a chain with a press down that lasts `duration` milliseconds
83
83
84
84
Args:
85
- el (:obj:`appium.webdriver.webelement.WebElement`, optional) : the element to press
86
- x (:obj:`int`, optional) : x coordiate to press. If y is used, x must also be set
87
- y (:obj:`int`, optional) : y coordiate to press. If x is used, y must also be set
88
- duration (:obj:`int`, optional) : Duration to press
85
+ el: the element to press
86
+ x: x coordiate to press. If y is used, x must also be set
87
+ y: y coordiate to press. If x is used, y must also be set
88
+ duration: Duration to press
89
89
90
90
Returns:
91
- `TouchAction`: self instance
91
+ `TouchAction`: Self instance
92
92
"""
93
93
self ._add_action ('longPress' , self ._get_opts (el , x , y , duration ))
94
94
@@ -98,10 +98,10 @@ def wait(self: T, ms: int = 0) -> T:
98
98
"""Pause for `ms` milliseconds.
99
99
100
100
Args:
101
- ms (int) : The time to pause
101
+ ms: The time to pause
102
102
103
103
Returns:
104
- `TouchAction`: self instance
104
+ `TouchAction`: Self instance
105
105
"""
106
106
if ms is None :
107
107
ms = 0
@@ -116,12 +116,12 @@ def move_to(self: T, el: Optional['WebElement'] = None, x: Optional[int] = None,
116
116
"""Move the pointer from the previous point to the element or point specified
117
117
118
118
Args:
119
- el (:obj:`appium.webdriver.webelement.WebElement`, optional) : the element to be moved to
120
- x (:obj:`int`, optional) : x coordiate to be moved to. If y is used, x must also be set
121
- y (:obj:`int`, optional) : y coordiate to be moved to. If x is used, y must also be set
119
+ el: the element to be moved to
120
+ x: x coordiate to be moved to. If y is used, x must also be set
121
+ y: y coordiate to be moved to. If x is used, y must also be set
122
122
123
123
Returns:
124
- `TouchAction`: self instance
124
+ `TouchAction`: Self instance
125
125
"""
126
126
self ._add_action ('moveTo' , self ._get_opts (el , x , y ))
127
127
@@ -131,7 +131,7 @@ def release(self: T) -> T:
131
131
"""End the action by lifting the pointer off the screen
132
132
133
133
Returns:
134
- `TouchAction`: self instance
134
+ `TouchAction`: Self instance
135
135
"""
136
136
self ._add_action ('release' , {})
137
137
@@ -141,7 +141,7 @@ def perform(self: T) -> T:
141
141
"""Perform the action by sending the commands to the server to be operated upon
142
142
143
143
Returns:
144
- `TouchAction`: self instance
144
+ `TouchAction`: Self instance
145
145
"""
146
146
if self ._driver is None :
147
147
raise ValueError ('Set driver to constructor as a argument when to create the instance.' )
0 commit comments