@@ -48,7 +48,7 @@ def test_triple_click_relative(web: WebBot):
48
48
web .browse (conftest .INDEX_PAGE )
49
49
50
50
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 ):
52
52
raise Exception ('Image not found: mouse' )
53
53
web .triple_click_relative (16 , 140 )
54
54
@@ -86,7 +86,7 @@ def test_left_click_relative(web: WebBot):
86
86
web .browse (conftest .INDEX_PAGE )
87
87
88
88
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 ):
90
90
raise Exception ('Image not found: mouse' )
91
91
web .click_relative (16 , 140 )
92
92
@@ -101,7 +101,7 @@ def test_left_double_click_relative(web: WebBot):
101
101
web .browse (conftest .INDEX_PAGE )
102
102
103
103
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 ):
105
105
raise Exception ('Image not found: mouse' )
106
106
web .double_click_relative (16 , 140 )
107
107
@@ -115,7 +115,7 @@ def test_right_click_relative(web: WebBot):
115
115
web .browse (conftest .INDEX_PAGE )
116
116
117
117
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 ):
119
119
raise Exception ('Image not found: mouse' )
120
120
web .right_click_relative (16 , 140 )
121
121
@@ -167,7 +167,7 @@ def test_move_relative(web: WebBot):
167
167
web .browse (conftest .INDEX_PAGE )
168
168
169
169
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 ):
171
171
raise Exception ('Image not found: mouse' )
172
172
web .move ()
173
173
web .move_relative (16 , 140 )
0 commit comments