Skip to content

Commit b915ef4

Browse files
committed
fix: adjust selector registration strategy to avoid false warings in console
1 parent c1c0a51 commit b915ef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helper/Playwright.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,10 @@ class Playwright extends Helper {
489489
// register an internal selector engine for reading value property of elements in a selector
490490
try {
491491
if (!defaultSelectorEnginesInitialized) {
492+
defaultSelectorEnginesInitialized = true
492493
await playwright.selectors.register('__value', createValueEngine)
493494
await playwright.selectors.register('__disabled', createDisabledEngine)
494495
if (process.env.testIdAttribute) await playwright.selectors.setTestIdAttribute(process.env.testIdAttribute)
495-
defaultSelectorEnginesInitialized = true
496496
}
497497

498498
// Register all custom locator strategies from the global registry

0 commit comments

Comments
 (0)