@@ -50,7 +50,8 @@ def test_triple_click_relative(web: WebBot):
5050 web .add_image ('mouse' , os .path .join (conftest .PROJECT_DIR , 'resources' , 'mouse.png' ))
5151 if not web .find ("mouse" , matching = 0.97 , waiting_time = 10_000 ):
5252 raise Exception ('Image not found: mouse' )
53- web .triple_click_relative (16 , 140 , wait_after = 1000 )
53+ web .wait (1000 )
54+ web .triple_click_relative (16 , 140 )
5455
5556 result = conftest .get_event_result ('element-result' , web )
5657 assert result ['data' ] == ['Left2' , 'Left2' , 'Left2' ]
@@ -88,7 +89,8 @@ def test_left_click_relative(web: WebBot):
8889 web .add_image ('mouse' , os .path .join (conftest .PROJECT_DIR , 'resources' , 'mouse.png' ))
8990 if not web .find ("mouse" , matching = 0.97 , waiting_time = 10_000 ):
9091 raise Exception ('Image not found: mouse' )
91- web .click_relative (16 , 140 , wait_after = 1000 )
92+ web .wait (1000 )
93+ web .click_relative (16 , 140 )
9294
9395 result = conftest .get_event_result ('element-result' , web )
9496 assert result ['data' ] == ['Left2' ]
@@ -103,7 +105,8 @@ def test_left_double_click_relative(web: WebBot):
103105 web .add_image ('mouse' , os .path .join (conftest .PROJECT_DIR , 'resources' , 'mouse.png' ))
104106 if not web .find ("mouse" , matching = 0.97 , waiting_time = 10_000 ):
105107 raise Exception ('Image not found: mouse' )
106- web .double_click_relative (16 , 140 , wait_after = 1000 )
108+ web .wait (1000 )
109+ web .double_click_relative (16 , 140 )
107110
108111 result = conftest .get_event_result ('element-result' , web )
109112 assert result ['data' ] == ['Left2' , 'Left2' ]
@@ -117,7 +120,8 @@ def test_right_click_relative(web: WebBot):
117120 web .add_image ('mouse' , os .path .join (conftest .PROJECT_DIR , 'resources' , 'mouse.png' ))
118121 if not web .find ("mouse" , matching = 0.97 , waiting_time = 10_000 ):
119122 raise Exception ('Image not found: mouse' )
120- web .right_click_relative (16 , 140 , wait_after = 1000 )
123+ web .wait (1000 )
124+ web .right_click_relative (16 , 140 )
121125
122126 result = conftest .get_event_result ('element-result' , web )
123127 assert result ['data' ] == ['Right2' ]
@@ -169,6 +173,7 @@ def test_move_relative(web: WebBot):
169173 web .add_image ('mouse' , os .path .join (conftest .PROJECT_DIR , 'resources' , 'mouse.png' ))
170174 if not web .find ("mouse" , matching = 0.97 , waiting_time = 10_000 ):
171175 raise Exception ('Image not found: mouse' )
176+ web .wait (1000 )
172177 web .move ()
173178 web .move_relative (16 , 140 )
174179
0 commit comments