fix(codegen): fallback to iframe[name/src] when failed to generate selector (#34030)

This commit is contained in:
Dmitry Gozman 2024-12-16 17:37:53 +00:00 committed by GitHub
parent 512cb36c9b
commit d4b2c966cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -300,7 +300,6 @@ async function generateFrameSelectorInParent(parent: Frame, frame: Frame): Promi
}, frameElement); }, frameElement);
return selector; return selector;
} catch (e) { } catch (e) {
return e.toString();
} }
}, monotonicTime() + 2000); }, monotonicTime() + 2000);
if (!result.timedOut && result.result) if (!result.timedOut && result.result)