@@ -48,7 +48,7 @@ def test_triple_click_relative(web: WebBot):
4848 web .browse (conftest .INDEX_PAGE )
4949
5050 web .add_image ('mouse' , os .path .join (conftest .PROJECT_DIR , 'resources' , 'mouse.png' ))
51- if not web .find ("mouse" , matching = 0.97 , waiting_time = 10_000 ):
51+ if not web .find ("mouse" , matching = 0.97 , waiting_time = 10_000 , x = 20 , y = 30 , width = 310 , height = 170 ):
5252 raise Exception ('Image not found: mouse' )
5353 web .triple_click_relative (16 , 140 )
5454
@@ -86,7 +86,7 @@ def test_left_click_relative(web: WebBot):
8686 web .browse (conftest .INDEX_PAGE )
8787
8888 web .add_image ('mouse' , os .path .join (conftest .PROJECT_DIR , 'resources' , 'mouse.png' ))
89- if not web .find ("mouse" , matching = 0.97 , waiting_time = 10_000 ):
89+ if not web .find ("mouse" , matching = 0.97 , waiting_time = 10_000 , x = 20 , y = 30 , width = 310 , height = 170 ):
9090 raise Exception ('Image not found: mouse' )
9191 web .click_relative (16 , 140 )
9292
@@ -101,7 +101,7 @@ def test_left_double_click_relative(web: WebBot):
101101 web .browse (conftest .INDEX_PAGE )
102102
103103 web .add_image ('mouse' , os .path .join (conftest .PROJECT_DIR , 'resources' , 'mouse.png' ))
104- if not web .find ("mouse" , matching = 0.97 , waiting_time = 10_000 ):
104+ if not web .find ("mouse" , matching = 0.97 , waiting_time = 10_000 , x = 20 , y = 30 , width = 310 , height = 170 ):
105105 raise Exception ('Image not found: mouse' )
106106 web .double_click_relative (16 , 140 )
107107
@@ -115,7 +115,7 @@ def test_right_click_relative(web: WebBot):
115115 web .browse (conftest .INDEX_PAGE )
116116
117117 web .add_image ('mouse' , os .path .join (conftest .PROJECT_DIR , 'resources' , 'mouse.png' ))
118- if not web .find ("mouse" , matching = 0.97 , waiting_time = 10_000 ):
118+ if not web .find ("mouse" , matching = 0.97 , waiting_time = 10_000 , x = 20 , y = 30 , width = 310 , height = 170 ):
119119 raise Exception ('Image not found: mouse' )
120120 web .right_click_relative (16 , 140 )
121121
@@ -167,7 +167,7 @@ def test_move_relative(web: WebBot):
167167 web .browse (conftest .INDEX_PAGE )
168168
169169 web .add_image ('mouse' , os .path .join (conftest .PROJECT_DIR , 'resources' , 'mouse.png' ))
170- if not web .find ("mouse" , matching = 0.97 , waiting_time = 10_000 ):
170+ if not web .find ("mouse" , matching = 0.97 , waiting_time = 10_000 , x = 20 , y = 30 , width = 310 , height = 170 ):
171171 raise Exception ('Image not found: mouse' )
172172 web .move ()
173173 web .move_relative (16 , 140 )
0 commit comments