We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6f8764 commit 57c2d58Copy full SHA for 57c2d58
run/types/DeviceWrapper.ts
@@ -1117,9 +1117,8 @@ export class DeviceWrapper {
1117
}
1118
// If no good match was found, throw an error
1119
if (!bestMatch) {
1120
- throw new Error(
1121
- `[matchAndTapImage] No matching image found among ${elements.length} elements for ${locator.strategy} "${locator.selector}"`
1122
- );
+ console.log(`[matchAndTapImage] No matching image found among ${elements.length} elements for ${locator.strategy} "${locator.selector}"`);
+ throw new Error('Unable to find the expected UI element on screen');
1123
1124
// Tap the best match found
1125
this.info(
0 commit comments