@@ -46,7 +46,7 @@ def scroll(self, origin_el: WebElement, destination_el: WebElement, duration: Op
46
46
if duration is None :
47
47
duration = 600
48
48
49
- touch_input = PointerInput (interaction .POINTER_TOUCH , " touch" )
49
+ touch_input = PointerInput (interaction .POINTER_TOUCH , ' touch' )
50
50
51
51
actions = ActionChains (self )
52
52
actions .w3c_actions = ActionBuilder (self , mouse = touch_input )
@@ -96,7 +96,7 @@ def tap(self, positions: List[Tuple[int, int]], duration: Optional[int] = None)
96
96
"""
97
97
if len (positions ) == 1 :
98
98
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' ))
100
100
x = positions [0 ][0 ]
101
101
y = positions [0 ][1 ]
102
102
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
145
145
Returns:
146
146
Union['WebDriver', 'ActionHelpers']: Self instance
147
147
"""
148
- touch_input = PointerInput (interaction .POINTER_TOUCH , " touch" )
148
+ touch_input = PointerInput (interaction .POINTER_TOUCH , ' touch' )
149
149
150
150
actions = ActionChains (self )
151
151
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
174
174
Union['WebDriver', 'ActionHelpers']: Self instance
175
175
"""
176
176
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' ))
178
178
actions .w3c_actions .pointer_action .move_to_location (start_x , start_y )
179
179
actions .w3c_actions .pointer_action .pointer_down ()
180
180
actions .w3c_actions .pointer_action .move_to_location (end_x , end_y )
0 commit comments