Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report: add full-page-screenshot to experimental config #10716

Merged
merged 166 commits into from
Jul 20, 2020
Merged
Show file tree
Hide file tree
Changes from 101 commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
1b3c178
WIP element screenshots
mattzeunert May 2, 2019
625a2b9
Store width/height with FPS
mattzeunert May 15, 2019
89d6ac2
Use correct width for FPS
mattzeunert May 15, 2019
af8c495
Add FPS to sample json
mattzeunert May 15, 2019
f0708c5
Update accessiblity artifacts
mattzeunert May 15, 2019
1d23453
Update sample json
mattzeunert May 15, 2019
2799517
Better handle desktop screenshots
mattzeunert May 15, 2019
d473ca1
Store fps audit result on details renderer
mattzeunert May 15, 2019
2a7bc86
Positioning fixes
mattzeunert May 15, 2019
e0b3edc
Don't change unrelated emulation settings in FPS gatherer
mattzeunert May 15, 2019
a854113
Show above table item
mattzeunert May 15, 2019
151cbcd
Zoom out
mattzeunert May 16, 2019
e3bf3dc
Tweaks
mattzeunert May 17, 2019
0a81430
Always show in bottom right
mattzeunert May 17, 2019
3e6c22f
asfd
mattzeunert May 17, 2019
cb6e4b1
click to toggle visible
mattzeunert May 17, 2019
761ad13
nothing
mattzeunert May 17, 2019
4657913
Remove node textcontent
mattzeunert May 17, 2019
8cb7371
Merge branch 'master' into element-screenshots
mattzeunert May 21, 2019
a85c6a9
Fix merge
mattzeunert May 21, 2019
362abfd
show screenshot inline
mattzeunert May 22, 2019
2e3f280
Merge branch 'master' into element-screenshots
mattzeunert May 25, 2019
2ab034b
Capture full-page screenshot
mattzeunert May 26, 2019
6bbd1c5
Don't inline elem screenshot again and again
mattzeunert May 27, 2019
80bab17
Show modal on click
mattzeunert May 27, 2019
cd23fa5
Don't zoom out in modal so much
mattzeunert May 27, 2019
f53b83c
Remove * 2
mattzeunert May 29, 2019
4d03200
Link jpeg quality exploration
mattzeunert May 29, 2019
c9f1593
Comment
mattzeunert May 29, 2019
012b81e
Remove timing/timestamp from screenshots
mattzeunert May 30, 2019
7125d42
Add fps gatherer tests
mattzeunert May 31, 2019
1ebc438
Merge branch 'master' into element-screenshots
mattzeunert May 31, 2019
7ca970d
Merge branch 'full-page-screenshot' into element-screenshots
mattzeunert May 31, 2019
4fd314d
attempt to merge master. tossed out emulation changes (too much churn)
connorjclark Apr 24, 2020
891d987
impl. emulation
connorjclark Apr 24, 2020
0149dda
patches
connorjclark Apr 24, 2020
8b1fd00
jsonsize
connorjclark Apr 24, 2020
e2317e3
Merge remote-tracking branch 'origin/master' into elscreens
connorjclark May 6, 2020
d4f5003
more rects
connorjclark May 6, 2020
624604e
Merge remote-tracking branch 'origin/master' into elscreens
connorjclark May 6, 2020
6e35068
clean up details renderer
connorjclark May 6, 2020
899f83c
.
connorjclark May 6, 2020
a396567
fix render tests
connorjclark May 6, 2020
36e5fc9
types
connorjclark May 6, 2020
8f2d5e9
fix some lints
connorjclark May 6, 2020
b0cad6a
move stuff
connorjclark May 6, 2020
4154902
copy
connorjclark May 6, 2020
c64fd38
.
connorjclark May 6, 2020
1f92e89
rm tmp
connorjclark May 7, 2020
ddc53b3
lint
connorjclark May 7, 2020
13f1887
Merge remote-tracking branch 'origin/master' into elscreens
connorjclark May 21, 2020
30d7ac5
update layout shift els
connorjclark May 21, 2020
ef87d32
pagefn
connorjclark May 26, 2020
cca396a
Merge remote-tracking branch 'origin/master' into elscreens
connorjclark May 26, 2020
f7db330
revert
connorjclark May 26, 2020
cc1f048
another pass at resetting emulation
connorjclark May 26, 2020
086d28d
Update lighthouse-core/gather/gatherers/accessibility.js
connorjclark May 26, 2020
9990455
try to put back emulation
connorjclark May 26, 2020
00d7907
cleanup
connorjclark May 27, 2020
2994768
Merge branch 'elscreens' of github.com:GoogleChrome/lighthouse into e…
connorjclark May 27, 2020
25f4fe2
move report ui feature code
connorjclark May 27, 2020
8b5ab2b
.lh-element-screenshot__overlay
connorjclark May 27, 2020
e1bb117
Merge remote-tracking branch 'origin/master' into elscreens
connorjclark Jun 8, 2020
2ee0800
fix a11y
connorjclark Jun 8, 2020
39582fc
Merge remote-tracking branch 'origin/master' into elscreens
connorjclark Jun 17, 2020
1f52f62
revert changes to screenshot details
connorjclark Jun 17, 2020
4cd3305
zoom cursor
connorjclark Jun 17, 2020
dbd60fa
refactor
connorjclark Jun 17, 2020
b62a353
yellow
connorjclark Jun 17, 2020
a8ce8e1
style
connorjclark Jun 17, 2020
23824c9
fix full-page-screenshot-test
connorjclark Jun 17, 2020
c5dc376
fixtest
connorjclark Jun 17, 2020
55e6987
Merge remote-tracking branch 'origin/master' into elscreens
connorjclark Jun 17, 2020
383dac9
sample
connorjclark Jun 17, 2020
a0b3eed
rename some things
connorjclark Jun 17, 2020
fcae257
attempt better zoom
connorjclark Jun 17, 2020
d3e8833
dom.find
connorjclark Jun 17, 2020
e3621fb
rm comment
connorjclark Jun 17, 2020
c7c5704
?
connorjclark Jun 18, 2020
26c48a1
patrick
connorjclark Jun 18, 2020
cfc07c3
Update lighthouse-core/report/html/renderer/element-screenshot-render…
connorjclark Jun 18, 2020
fa5a2ac
pr
connorjclark Jun 18, 2020
bff996a
clip, notapplicable
connorjclark Jun 18, 2020
cdf2122
round
connorjclark Jun 18, 2020
69e00cd
round
connorjclark Jun 18, 2020
a88b37c
smoke
connorjclark Jun 19, 2020
155d8b1
jk
connorjclark Jun 19, 2020
16bf77d
lint. fix calcing viewport size
connorjclark Jun 20, 2020
216bc15
lint
connorjclark Jun 20, 2020
3f50ac6
pr
connorjclark Jun 20, 2020
568fb35
fixtest
connorjclark Jun 20, 2020
f5d76e4
try to put orientation back. and resuse dpr instead of setting to 1.
connorjclark Jun 20, 2020
e378e31
a11y smoke
connorjclark Jun 22, 2020
1ebfa91
fix unit test
connorjclark Jun 22, 2020
14a5564
fix cli test
connorjclark Jun 22, 2020
f34ea90
remove position expectations bc flaky
connorjclark Jun 22, 2020
1bd93a0
ugh
connorjclark Jun 22, 2020
44f4de3
ugh
connorjclark Jun 22, 2020
2848728
started renames
connorjclark Jun 22, 2020
ce05828
more renaming
connorjclark Jun 22, 2020
9f55fa8
add test for .render
connorjclark Jun 22, 2020
d633453
Update lighthouse-core/report/html/renderer/element-screenshot-render…
connorjclark Jun 23, 2020
2cee591
Update lighthouse-core/report/html/renderer/element-screenshot-render…
connorjclark Jun 23, 2020
4efd358
Update lighthouse-core/report/html/renderer/element-screenshot-render…
connorjclark Jun 23, 2020
ac69651
lint
connorjclark Jun 24, 2020
2c85cc0
Merge remote-tracking branch 'origin/master' into elscreens
connorjclark Jun 24, 2020
2173bc9
Merge remote-tracking branch 'origin/master' into elscreens
connorjclark Jun 25, 2020
c411fd8
screenshot
connorjclark Jun 25, 2020
efc9f63
Apply suggestions from code review
connorjclark Jun 26, 2020
2acc43e
rect
connorjclark Jun 26, 2020
64c0d8c
undo
connorjclark Jun 26, 2020
2f9da50
ov
connorjclark Jun 26, 2020
10b7f53
Apply suggestions from code review
connorjclark Jun 26, 2020
e32c48c
brendan pr first pass
connorjclark Jun 26, 2020
bbf68e5
fix image style and detail render ctor
connorjclark Jun 27, 2020
169bd27
Merge remote-tracking branch 'origin/master' into elscreens
connorjclark Jul 7, 2020
d442496
comment
connorjclark Jul 7, 2020
25fc359
pr
connorjclark Jul 9, 2020
b97c634
lol
connorjclark Jul 9, 2020
a5c2d89
suffix
connorjclark Jul 9, 2020
84b8eab
doc
connorjclark Jul 9, 2020
909024b
ahhhhh
connorjclark Jul 9, 2020
511b4b0
yay
connorjclark Jul 9, 2020
7d13cce
comments
connorjclark Jul 9, 2020
d7cd541
yay
connorjclark Jul 9, 2020
4af9fdd
cut it out
connorjclark Jul 9, 2020
9519076
pr
connorjclark Jul 9, 2020
9240245
Merge remote-tracking branch 'origin/master' into elscreens
connorjclark Jul 10, 2020
95e5a70
createElementNS
connorjclark Jul 10, 2020
096b1bb
tests
connorjclark Jul 10, 2020
f1e4265
Merge remote-tracking branch 'origin/master' into elscreens
connorjclark Jul 10, 2020
d8598d6
lint
connorjclark Jul 10, 2020
128e857
bigger
connorjclark Jul 10, 2020
35c04e8
more bigger
connorjclark Jul 10, 2020
18efe26
fix
connorjclark Jul 10, 2020
d7ca99f
local img
connorjclark Jul 13, 2020
152d5b2
test
connorjclark Jul 13, 2020
8c8480d
test
connorjclark Jul 13, 2020
1e11fc4
test
connorjclark Jul 13, 2020
850d188
test
connorjclark Jul 13, 2020
8130983
update
connorjclark Jul 13, 2020
fe9d2b8
nowait
connorjclark Jul 13, 2020
b492789
singleclick
connorjclark Jul 13, 2020
30e4ae5
experimental
connorjclark Jul 14, 2020
442805a
pr
connorjclark Jul 14, 2020
9bca476
pr
connorjclark Jul 14, 2020
90aaafc
dataset
connorjclark Jul 14, 2020
5e495c9
Merge remote-tracking branch 'origin/master' into elscreens
connorjclark Jul 14, 2020
c9850e9
color
connorjclark Jul 14, 2020
9cdb115
type
connorjclark Jul 14, 2020
cfdffdd
travis flake
connorjclark Jul 14, 2020
737a4b0
set max screenshot height based on dpr
connorjclark Jul 14, 2020
a5ea66f
fix test
connorjclark Jul 14, 2020
9641d0d
travis flake
connorjclark Jul 15, 2020
06d3e1b
Merge remote-tracking branch 'origin/master' into elscreens
connorjclark Jul 17, 2020
5e689f3
pr
connorjclark Jul 17, 2020
0456bfe
pr
connorjclark Jul 17, 2020
4b2d495
comments
connorjclark Jul 17, 2020
9f0746e
comment
connorjclark Jul 17, 2020
3d8d697
style
connorjclark Jul 17, 2020
97d9445
Update lighthouse-core/report/html/renderer/element-screenshot-render…
connorjclark Jul 18, 2020
9fa93f3
Apply suggestions from code review
connorjclark Jul 18, 2020
03c6a6b
somerename
connorjclark Jul 20, 2020
2a4cb5b
Merge branch 'elscreens' of github.com:GoogleChrome/lighthouse into e…
connorjclark Jul 20, 2020
e39c5dc
lint
connorjclark Jul 20, 2020
ee3c365
fileoverview
connorjclark Jul 20, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lighthouse-cli/test/cli/__snapshots__/index-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ Object {
Object {
"path": "final-screenshot",
},
Object {
"path": "full-page-screenshot",
},
Object {
"path": "metrics/estimated-input-latency",
},
Expand Down Expand Up @@ -1349,6 +1352,9 @@ Object {
Object {
"path": "inspector-issues",
},
Object {
"path": "full-page-screenshot",
},
],
"loadFailureMode": "fatal",
"networkQuietThresholdMs": 1000,
Expand Down
17 changes: 17 additions & 0 deletions lighthouse-cli/test/fixtures/screenshots.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<style>
connorjclark marked this conversation as resolved.
Show resolved Hide resolved
body {
background: lightblue url('https://i.stack.imgur.com/YbUvO.gif') no-repeat fixed center;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imgur definitely goes down at times. Can we just generate a high entropy image really quickly and check it in?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
p {
background-color: white;
}
</style>

<body>
<script>
const params = new URLSearchParams(document.location.search);
document.body.style.height = params.get('height') || '100vh';
</script>

<p>Screenshot tester.</p>
</body>
2 changes: 1 addition & 1 deletion lighthouse-cli/test/smokehouse/report-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function collateResults(localConsole, actual, expected) {
const artifactNames = /** @type {(keyof LH.Artifacts)[]} */ (Object.keys(expectedArtifacts));
artifactAssertions = artifactNames.map(artifactName => {
const actualResult = (actual.artifacts || {})[artifactName];
if (!actualResult) {
if (!actualResult && expectedArtifacts[artifactName]) {
connorjclark marked this conversation as resolved.
Show resolved Hide resolved
localConsole.log(log.redify('Error: ') +
`Config run did not generate artifact ${artifactName}`);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ const expectations = [
{
node: {
'type': 'node',
'boundingRect': {
'width': '>0',
'height': '>0',
},
'selector': '#aria-hidden-focus',
'snippet': '<div id="aria-hidden-focus" aria-hidden="true">\n <button>Focusable Button</button>\n </div>',
'explanation': 'Fix all of the following:\n Focusable content should be disabled or be removed from the DOM',
Expand All @@ -64,6 +68,10 @@ const expectations = [
{
node: {
'type': 'node',
'boundingRect': {
'width': '>0',
'height': '>0',
},
'selector': '#aria-input-field-name',
'snippet': '<div id="aria-input-field-name" role="textbox">text-in-a-box</div>',
'explanation': 'Fix any of the following:\n aria-label attribute does not exist or is empty\n aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty\n Element has no title attribute or the title attribute is empty',
Expand Down
4 changes: 4 additions & 0 deletions lighthouse-cli/test/smokehouse/test-definitions/core-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ const smokeTests = [{
id: 'source-maps',
expectations: require('./source-maps/expectations.js'),
config: require('./source-maps/source-maps-config.js'),
}, {
id: 'screenshots',
connorjclark marked this conversation as resolved.
Show resolved Hide resolved
expectations: require('./screenshots/expectations.js'),
config: require('./screenshots/screenshots-config.js'),
}];

module.exports = smokeTests;
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* @license Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
'use strict';

/**
* @type {Array<Smokehouse.ExpectedRunnerResult>}
*/
const expectations = [
{
artifacts: {
FullPageScreenshot: {
data: /data:image\/jpeg;base64,.{520000,530000}$/,
width: 1350,
height: 956,
},
},
lhr: {
requestedUrl: 'http://localhost:10200/screenshots.html',
finalUrl: 'http://localhost:10200/screenshots.html',
audits: {},
},
},
{
artifacts: {
FullPageScreenshot: null,
},
lhr: {
requestedUrl: 'http://localhost:10200/screenshots.html?height=1000vh',
finalUrl: 'http://localhost:10200/screenshots.html?height=1000vh',
runWarnings: ['Full page screenshot is too big.'],
audits: {},
},
},
];

module.exports = expectations;
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* @license Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
'use strict';

/** @type {LH.Config.Json} */
module.exports = {
extends: 'lighthouse:default',
settings: {
onlyAudits: ['full-page-screenshot'],
emulatedFormFactor: 'desktop',
},
};
1 change: 1 addition & 0 deletions lighthouse-core/audits/accessibility/axe-audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class AxeAudit extends Audit {
selector: Array.isArray(node.target) ? node.target.join(' ') : '',
path: node.path,
snippet: node.html || node.snippet,
boundingRect: node.boundingRect,
explanation: node.failureSummary,
nodeLabel: node.nodeLabel,
}),
Expand Down
45 changes: 45 additions & 0 deletions lighthouse-core/audits/full-page-screenshot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/**
* @license Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
'use strict';

const Audit = require('./audit.js');

class FullPageScreenshot extends Audit {
/**
* @return {LH.Audit.Meta}
*/
static get meta() {
return {
id: 'full-page-screenshot',
scoreDisplayMode: Audit.SCORING_MODES.INFORMATIVE,
title: 'Full-page screenshot',
description: 'A full-height screenshot of the final rendered page',
requiredArtifacts: ['FullPageScreenshot'],
};
}

/**
* @param {LH.Artifacts} artifacts
* @return {Promise<LH.Audit.Product>}
*/
static async audit(artifacts) {
if (!artifacts.FullPageScreenshot) {
return {score: 0, notApplicable: true};
}

return {
score: 1,
details: {
type: 'screenshot',
timing: 0,
timestamp: 0,
...artifacts.FullPageScreenshot,
},
};
}
}

module.exports = FullPageScreenshot;
1 change: 1 addition & 0 deletions lighthouse-core/audits/largest-contentful-paint-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class LargestContentfulPaintElement extends Audit {
selector: lcpElement.selector,
nodeLabel: lcpElement.nodeLabel,
snippet: lcpElement.snippet,
boundingRect: lcpElement.boundingRect,
}),
});
}
Expand Down
1 change: 1 addition & 0 deletions lighthouse-core/audits/layout-shift-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class LayoutShiftElements extends Audit {
selector: element.selector,
nodeLabel: element.nodeLabel,
snippet: element.snippet,
boundingRect: element.boundingRect,
}),
};
});
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/seo/font-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function getSelector(node) {

/**
* @param {FailingNodeData['node']} node
* @return {{type: 'node', selector: string, snippet: string}}
* @return {LH.Audit.Details.NodeValue}
*/
function nodeToTableNode(node) {
const attributes = node.attributes || [];
Expand Down
4 changes: 4 additions & 0 deletions lighthouse-core/audits/seo/tap-targets.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const {
allRectsContainedWithinEachOther,
getLargestRect,
getBoundingRectWithPadding,
getBoundingRect,
} = require('../../lib/rect-helpers.js');
const {getTappableRectsFromClientRects} = require('../../lib/tappable-rects.js');
const i18n = require('../../lib/i18n/i18n.js');
Expand Down Expand Up @@ -244,11 +245,14 @@ function getTableItems(overlapFailures) {
* @returns {LH.Audit.Details.NodeValue}
*/
function targetToTableNode(target) {
const boundingRect = getBoundingRect(target.clientRects);

return {
type: 'node',
snippet: target.snippet,
path: target.path,
selector: target.selector,
boundingRect,
nodeLabel: target.nodeLabel,
};
}
Expand Down
2 changes: 2 additions & 0 deletions lighthouse-core/config/default-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ const defaultConfig = {
'accessibility',
'trace-elements',
'inspector-issues',
'full-page-screenshot',
],
},
{
Expand Down Expand Up @@ -196,6 +197,7 @@ const defaultConfig = {
'metrics/speed-index',
'screenshot-thumbnails',
'final-screenshot',
'full-page-screenshot',
connorjclark marked this conversation as resolved.
Show resolved Hide resolved
'metrics/estimated-input-latency',
'metrics/total-blocking-time',
'metrics/max-potential-fid',
Expand Down
13 changes: 12 additions & 1 deletion lighthouse-core/gather/gatherers/accessibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
'use strict';

/* global window, document, getOuterHTMLSnippet, getNodePath, getNodeLabel */
/* global window, document, getOuterHTMLSnippet, getBoundingClientRect, getNodePath, getNodeLabel */

const Gatherer = require('./gatherer.js');
const fs = require('fs');
Expand Down Expand Up @@ -52,6 +52,10 @@ function runA11yChecks() {
},
// @ts-ignore
}).then(axeResult => {
// axe just scrolled the page, scroll back to the top of the page so that element positions
// are relative to the top of the page
document.documentElement.scrollTop = 0;
patrickhulce marked this conversation as resolved.
Show resolved Hide resolved

// @ts-ignore
const augmentAxeNodes = result => {
// @ts-ignore
Expand All @@ -60,6 +64,12 @@ function runA11yChecks() {
node.path = getNodePath(node.element);
// @ts-ignore - getOuterHTMLSnippet put into scope via stringification
node.snippet = getOuterHTMLSnippet(node.element);
// @ts-ignore - getOuterHTMLSnippet put into scope via stringification
connorjclark marked this conversation as resolved.
Show resolved Hide resolved
const rect = getBoundingClientRect(node.element);
if (rect.width > 0 && rect.height > 0) {
node.boundingRect = rect;
}

// @ts-ignore - getNodeLabel put into scope via stringification
node.nodeLabel = getNodeLabel(node.element);
// avoid circular JSON concerns
Expand Down Expand Up @@ -100,6 +110,7 @@ class Accessibility extends Gatherer {
const driver = passContext.driver;
const expression = `(function () {
${pageFunctions.getOuterHTMLSnippetString};
${pageFunctions.getBoundingClientRectString};
${pageFunctions.getNodePathString};
${pageFunctions.getNodeLabelString};
${axeLibSource};
Expand Down
Loading