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(electron/android): re-add Element.prototype.checkVisibility check (#28173)
Max Schmitt80bab8afae12
diff --git a/packages/playwright-core/src/server/injected/domUtils.ts b/packages/playwright-core/src/server/injected/domUtils.tsindex b20de88754..b88cb44c0a 100644--- a/packages/playwright-core/src/server/injected/domUtils.ts+++ b/packages/playwright-core/src/server/injected/domUtils.ts@@ -82,7 +82,8 @@ export function isElementStyleVisibilityVisible(element: Element, style?: CSSSty// details element for example.// All the browser implement it, but WebKit has a bug which prevents us from using it:// https://bugs.webkit.org/show_bug.cgi?id=264733- if (browserNameForWorkarounds !== 'webkit') {+ // @ts-ignore+ if (Element.prototype.checkVisibility && browserNameForWorkarounds !== 'webkit') {if (!element.checkVisibility({ checkOpacity: false, checkVisibilityCSS: false }))return false;} else {