puppeteer: [Bug]: Node is either not clickable or not an HTMLElement
Bug 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
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (10 by maintainers)
Commits related to this issue
- fix(page): fix page.#scrollIntoViewIfNeeded method This patch fixes page.#scrollIntoViewIfNeededso that it works with devtools protocol. Now it blocks the main thread and waits until the scrolling ac... — committed to abozhilov/puppeteer by abozhilov 2 years ago
- fix(page): fix page.#scrollIntoViewIfNeeded method This patch fixes page.#scrollIntoViewIfNeeded, so that it works with devtools protocol. Now it blocks the main thread and waits until the scrolling ... — committed to abozhilov/puppeteer by abozhilov 2 years ago
- fix(page): fix page.#scrollIntoViewIfNeeded method This patch fixes page.#scrollIntoViewIfNeeded, so that it works with devtools protocol. Now it blocks the main thread and waits until the scrolling ... — committed to abozhilov/puppeteer by abozhilov 2 years ago
- fix(page): fix page.#scrollIntoViewIfNeeded method This patch fixes page.#scrollIntoViewIfNeeded, so that it works with devtools protocol. Now it blocks the main thread and waits until the scrolling ... — committed to abozhilov/puppeteer by abozhilov 2 years ago
- fix(page): fix page.#scrollIntoViewIfNeeded method This patch fixes page.#scrollIntoViewIfNeeded, so that it works with devtools protocol. Now it blocks the main thread and waits until the scrolling ... — committed to abozhilov/puppeteer by abozhilov 2 years ago
- fix(page): fix page.#scrollIntoViewIfNeeded method (#8631) This patch fixes page.#scrollIntoViewIfNeeded, so that it works with devtools protocol. Now it blocks the main thread and waits until the s... — committed to puppeteer/puppeteer by abozhilov 2 years ago
The issue is still there.
The issue doesn’t seem to be solved
please open a new issue with all details and a repro!