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
fix(text selector): ignore NOSCRIPT elements (#15887)
Dmitry Gozmanfd21852b0129
diff --git a/packages/playwright-core/src/server/injected/selectorUtils.ts b/packages/playwright-core/src/server/injected/selectorUtils.tsindex accfd18156..933ebd2ad9 100644--- a/packages/playwright-core/src/server/injected/selectorUtils.ts+++ b/packages/playwright-core/src/server/injected/selectorUtils.ts@@ -76,7 +76,7 @@ export function createRegexTextMatcher(source: string, flags?: string): TextMatc}export function shouldSkipForTextMatching(element: Element | ShadowRoot) {- return element.nodeName === 'SCRIPT' || element.nodeName === 'STYLE' || document.head && document.head.contains(element);+ return element.nodeName === 'SCRIPT' || element.nodeName === 'NOSCRIPT' || element.nodeName === 'STYLE' || document.head && document.head.contains(element);}export type ElementText = { full: string, immediate: string[] };