Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: delete expired location handler from client map (#30574)
Yury Semikhatskyff35f651e669
diff --git a/packages/playwright-core/src/client/page.ts b/packages/playwright-core/src/client/page.tsindex de5aaff6b1..58f5758188 100644--- a/packages/playwright-core/src/client/page.ts+++ b/packages/playwright-core/src/client/page.ts@@ -382,6 +382,8 @@ export class Page extends ChannelOwner<channels.PageChannel> implements api.Page}remove = handler?.times === 0;} finally {+ if (remove)+ this._locatorHandlers.delete(uid);this._wrapApiCall(() => this._channel.resolveLocatorHandlerNoReply({ uid, remove }), true).catch(() => {});}}