@one2x/playwright 1.57.0-alpha.14 → 1.57.0-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -256,6 +256,7 @@ const inspectAtXY = (0, import_tool.defineTabTool)({
|
|
|
256
256
|
element: ariaRef?.name || element.tagName.toLowerCase(),
|
|
257
257
|
truncatedHTML: truncateIterativeDeepening(element, 300),
|
|
258
258
|
tagName: element.tagName.toLowerCase(),
|
|
259
|
+
bounds: element.getBoundingClientRect(),
|
|
259
260
|
computedStyles: {
|
|
260
261
|
display: computedStyle.display,
|
|
261
262
|
visibility: computedStyle.visibility,
|
|
@@ -316,6 +317,17 @@ ${suggestedSelectors}
|
|
|
316
317
|
\`\`\`html
|
|
317
318
|
${elementInfo.truncatedHTML}
|
|
318
319
|
\`\`\`
|
|
320
|
+
`;
|
|
321
|
+
result += `
|
|
322
|
+
**Bounding Box (viewport coordinates):**
|
|
323
|
+
`;
|
|
324
|
+
result += `- x: ${elementInfo.bounds.x}
|
|
325
|
+
`;
|
|
326
|
+
result += `- y: ${elementInfo.bounds.y}
|
|
327
|
+
`;
|
|
328
|
+
result += `- width: ${elementInfo.bounds.width}
|
|
329
|
+
`;
|
|
330
|
+
result += `- height: ${elementInfo.bounds.height}
|
|
319
331
|
`;
|
|
320
332
|
result += `
|
|
321
333
|
**Key Computed Styles:**
|
|
@@ -329,10 +341,6 @@ ${elementInfo.truncatedHTML}
|
|
|
329
341
|
result += `- Position: ${elementInfo.computedStyles.position}
|
|
330
342
|
`;
|
|
331
343
|
result += `- Z-Index: ${elementInfo.computedStyles.zIndex}
|
|
332
|
-
`;
|
|
333
|
-
result += `- Width: ${elementInfo.computedStyles.width}
|
|
334
|
-
`;
|
|
335
|
-
result += `- Height: ${elementInfo.computedStyles.height}
|
|
336
344
|
`;
|
|
337
345
|
result += `- Background Color: ${elementInfo.computedStyles.backgroundColor}
|
|
338
346
|
`;
|
|
@@ -369,13 +369,17 @@ ${suggestedSelectors}
|
|
|
369
369
|
${elementDetails.truncatedHTML}
|
|
370
370
|
\`\`\`
|
|
371
371
|
|
|
372
|
+
**Bounding Box (viewport coordinates):**
|
|
373
|
+
- x: ${elementDetails.bounds.x}
|
|
374
|
+
- y: ${elementDetails.bounds.y}
|
|
375
|
+
- width: ${elementDetails.bounds.width}
|
|
376
|
+
- height: ${elementDetails.bounds.height}
|
|
377
|
+
|
|
372
378
|
**Key Computed Styles:**
|
|
373
379
|
- Display: ${elementDetails.computedStyles.display}
|
|
374
380
|
- Visibility: ${elementDetails.computedStyles.visibility}
|
|
375
381
|
- Opacity: ${elementDetails.computedStyles.opacity}
|
|
376
382
|
- Position: ${elementDetails.computedStyles.position}
|
|
377
|
-
- Width: ${elementDetails.computedStyles.width}
|
|
378
|
-
- Height: ${elementDetails.computedStyles.height}
|
|
379
383
|
- Background Color: ${elementDetails.computedStyles.backgroundColor}
|
|
380
384
|
- Color: ${elementDetails.computedStyles.color}
|
|
381
385
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@one2x/playwright",
|
|
3
|
-
"version": "1.57.0-alpha.
|
|
3
|
+
"version": "1.57.0-alpha.15",
|
|
4
4
|
"description": "A high-level API to automate web browsers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"license": "Apache-2.0",
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"content-type": "^1.0.5",
|
|
68
|
-
"playwright-core": "npm:@one2x/playwright-core@1.57.0-alpha.
|
|
68
|
+
"playwright-core": "npm:@one2x/playwright-core@1.57.0-alpha.15",
|
|
69
69
|
"raw-body": "^2.5.2"
|
|
70
70
|
},
|
|
71
71
|
"optionalDependencies": {
|