Skip to content

Commit 3d4debb

Browse files
committed
FIX: Pass the whole image to find when using region.
1 parent d5873c0 commit 3d4debb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

botcity/web/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def find_until(self, label, x=None, y=None, width=None, height=None, *,
450450
elapsed_time = (time.time() - start_time) * 1000
451451
if elapsed_time > waiting_time:
452452
return None
453-
haystack = self.get_screen_image(region=region)
453+
haystack = self.get_screen_image()
454454
it = cv2find.locate_all_opencv(element_path, haystack_image=haystack,
455455
region=region, confidence=matching, grayscale=grayscale)
456456
try:

0 commit comments

Comments
 (0)