[Bug]: Node is either not clickable or not an HTMLElement

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
namtxcommented, Oct 24, 2022

The issue is still there.

0reactions
OrKoNcommented, Oct 25, 2022

please open a new issue with all details and a repro!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found