chore: update to 1.54.0 (#653)

Closes https://github.com/microsoft/playwright-mcp/issues/535
This commit is contained in:
Simon Knott 2025-07-14 09:53:33 +02:00 committed by GitHub
parent 59f1d67a4e
commit 841bb417d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 59 additions and 42 deletions

View file

@ -81,7 +81,7 @@ export async function generateLocator(locator: playwright.Locator): Promise<stri
try {
return await (locator as any)._generateLocatorString();
} catch (e) {
if (e instanceof Error && /locator._generateLocatorString: Timeout .* exceeded/.test(e.message))
if (e instanceof Error && /locator._generateLocatorString: No element matching locator/.test(e.message))
throw new Error('Ref not found, likely because element was removed. Use browser_snapshot to see what elements are currently on the page.');
throw e;
}