@@ -46,7 +46,7 @@ def scroll(self, origin_el: WebElement, destination_el: WebElement, duration: Op
4646 if duration is None :
4747 duration = 600
4848
49- touch_input = PointerInput (interaction .POINTER_TOUCH , " touch" )
49+ touch_input = PointerInput (interaction .POINTER_TOUCH , ' touch' )
5050
5151 actions = ActionChains (self )
5252 actions .w3c_actions = ActionBuilder (self , mouse = touch_input )
@@ -96,7 +96,7 @@ def tap(self, positions: List[Tuple[int, int]], duration: Optional[int] = None)
9696 """
9797 if len (positions ) == 1 :
9898 actions = ActionChains (self )
99- actions .w3c_actions = ActionBuilder (self , mouse = PointerInput (interaction .POINTER_TOUCH , "touch" ))
99+ actions .w3c_actions = ActionBuilder (self , mouse = PointerInput (interaction .POINTER_TOUCH , 'touc' ))
100100 x = positions [0 ][0 ]
101101 y = positions [0 ][1 ]
102102 actions .w3c_actions .pointer_action .move_to_location (x , y )
@@ -145,7 +145,7 @@ def swipe(self, start_x: int, start_y: int, end_x: int, end_y: int, duration: in
145145 Returns:
146146 Union['WebDriver', 'ActionHelpers']: Self instance
147147 """
148- touch_input = PointerInput (interaction .POINTER_TOUCH , " touch" )
148+ touch_input = PointerInput (interaction .POINTER_TOUCH , ' touch' )
149149
150150 actions = ActionChains (self )
151151 actions .w3c_actions = ActionBuilder (self , mouse = touch_input )
@@ -174,7 +174,7 @@ def flick(self, start_x: int, start_y: int, end_x: int, end_y: int) -> 'WebDrive
174174 Union['WebDriver', 'ActionHelpers']: Self instance
175175 """
176176 actions = ActionChains (self )
177- actions .w3c_actions = ActionBuilder (self , mouse = PointerInput (interaction .POINTER_TOUCH , " touch" ))
177+ actions .w3c_actions = ActionBuilder (self , mouse = PointerInput (interaction .POINTER_TOUCH , ' touch' ))
178178 actions .w3c_actions .pointer_action .move_to_location (start_x , start_y )
179179 actions .w3c_actions .pointer_action .pointer_down ()
180180 actions .w3c_actions .pointer_action .move_to_location (end_x , end_y )
0 commit comments