playwright-core
Advanced tools
Comparing version 1.49.0-beta-1731591637000 to 1.49.0-beta-1731595428000
@@ -38,2 +38,3 @@ "use strict"; | ||
const kCurrentSrcAttribute = '__playwright_current_src__'; | ||
const kBoundingRectAttribute = '__playwright_bounding_rect__'; | ||
@@ -357,2 +358,14 @@ // Symbols for our own info on Nodes/StyleSheets. | ||
} | ||
if (nodeName === 'CANVAS') { | ||
const boundingRect = element.getBoundingClientRect(); | ||
const value = JSON.stringify({ | ||
left: boundingRect.left / window.innerWidth, | ||
top: boundingRect.top / window.innerHeight, | ||
right: boundingRect.right / window.innerWidth, | ||
bottom: boundingRect.bottom / window.innerHeight | ||
}); | ||
expectValue(kBoundingRectAttribute); | ||
expectValue(value); | ||
attrs[kBoundingRectAttribute] = value; | ||
} | ||
if (element.scrollTop) { | ||
@@ -359,0 +372,0 @@ expectValue(kScrollTopAttribute); |
{ | ||
"name": "playwright-core", | ||
"version": "1.49.0-beta-1731591637000", | ||
"version": "1.49.0-beta-1731595428000", | ||
"description": "A high-level API to automate web browsers", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7961130
108913