Skip to content

Commit 57c2d58

Browse files
committed
chore: tidy up matchAndTapImage logging
1 parent f6f8764 commit 57c2d58

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

run/types/DeviceWrapper.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,9 +1117,8 @@ export class DeviceWrapper {
11171117
}
11181118
// If no good match was found, throw an error
11191119
if (!bestMatch) {
1120-
throw new Error(
1121-
`[matchAndTapImage] No matching image found among ${elements.length} elements for ${locator.strategy} "${locator.selector}"`
1122-
);
1120+
console.log(`[matchAndTapImage] No matching image found among ${elements.length} elements for ${locator.strategy} "${locator.selector}"`);
1121+
throw new Error('Unable to find the expected UI element on screen');
11231122
}
11241123
// Tap the best match found
11251124
this.info(

0 commit comments

Comments
 (0)