@@ -46,12 +46,12 @@ def tap(self: T, element: Optional['WebElement'] = None, x: Optional[int]
4646 """Perform a tap action on the element
4747
4848 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
5252
5353 Returns:
54- `TouchAction`: self instance
54+ `TouchAction`: Self instance
5555 """
5656 opts = self ._get_opts (element , x , y )
5757 opts ['count' ] = count
@@ -64,14 +64,14 @@ def press(self: T, el: Optional['WebElement'] = None, x: Optional[int] = None,
6464 """Begin a chain with a press down action at a particular element or point
6565
6666 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
7171 (https://developer.apple.com/documentation/uikit/uitouch?language=objc) for more details on possible value ranges.
7272
7373 Returns:
74- `TouchAction`: self instance
74+ `TouchAction`: Self instance
7575 """
7676 self ._add_action ('press' , self ._get_opts (el , x , y , pressure = pressure ))
7777
@@ -82,13 +82,13 @@ def long_press(self: T, el: Optional['WebElement'] = None, x: Optional[int]
8282 """Begin a chain with a press down that lasts `duration` milliseconds
8383
8484 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
8989
9090 Returns:
91- `TouchAction`: self instance
91+ `TouchAction`: Self instance
9292 """
9393 self ._add_action ('longPress' , self ._get_opts (el , x , y , duration ))
9494
@@ -98,10 +98,10 @@ def wait(self: T, ms: int = 0) -> T:
9898 """Pause for `ms` milliseconds.
9999
100100 Args:
101- ms (int) : The time to pause
101+ ms: The time to pause
102102
103103 Returns:
104- `TouchAction`: self instance
104+ `TouchAction`: Self instance
105105 """
106106 if ms is None :
107107 ms = 0
@@ -116,12 +116,12 @@ def move_to(self: T, el: Optional['WebElement'] = None, x: Optional[int] = None,
116116 """Move the pointer from the previous point to the element or point specified
117117
118118 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
122122
123123 Returns:
124- `TouchAction`: self instance
124+ `TouchAction`: Self instance
125125 """
126126 self ._add_action ('moveTo' , self ._get_opts (el , x , y ))
127127
@@ -131,7 +131,7 @@ def release(self: T) -> T:
131131 """End the action by lifting the pointer off the screen
132132
133133 Returns:
134- `TouchAction`: self instance
134+ `TouchAction`: Self instance
135135 """
136136 self ._add_action ('release' , {})
137137
@@ -141,7 +141,7 @@ def perform(self: T) -> T:
141141 """Perform the action by sending the commands to the server to be operated upon
142142
143143 Returns:
144- `TouchAction`: self instance
144+ `TouchAction`: Self instance
145145 """
146146 if self ._driver is None :
147147 raise ValueError ('Set driver to constructor as a argument when to create the instance.' )
0 commit comments