[Bug]: Node is either not clickable or not an HTMLElement
See original GitHub issueBug description
Steps to reproduce the problem:
Given the following simple script:
import puppeteer from 'puppeteer';
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set');
await Promise.all([
page.waitForNavigation(),
page.click('#set\\.prototype\\.keys > a')
]);
await browser.close();
})();
It throws the following error:
throw new Error('Node is either not clickable or not an HTMLElement');
That’s due to area calculations which returns 0: https://github.com/puppeteer/puppeteer/blob/3735ef13f1ca8ed6455956f56fb8c9884fd70545/src/common/ElementHandle.ts#L1048
Puppeteer version
15.3.0
Node.js version
16.13.0
npm version
^15.3.0
What operating system are you seeing the problem on?
Linux
Relevant log output
No response
Issue Analytics
- State:
- Created a year ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Puppeteer in NodeJS reports 'Error: Node is either not visible ...
Error : Node is either not visible or not an HTMLElement. The following code picks a link that in both cases is off...
Read more >Resolve CloudWatch canary error "Node is either not visible ...
Resolution. When creating a CloudWatch canary, the "Node is either not visible or not an HTMLElement" error is typically caused by: Using ...
Read more >Node is either not visible or not an HTMLElement (flaky ...
Node is either not visible or not an HTMLElement (flaky selenium test). Closed, ResolvedPublic.
Read more >Error: Node is either not clickable or not an HTMLElement
Try const puppeteer = require('puppeteer'); const button = await page.$(selector); await button.evaluate(b => b.click());
Read more >webdriverio/webdriverio - Gitter
Error : Node is either not visible or not an HTMLElement" . But the element was in visible state . I am running...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The issue is still there.
please open a new issue with all details and a repro!