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

Why can't I see some puppeteer calls in the protocol monitor? #5977

Closed
vsemozhetbyt opened this issue Jun 6, 2020 · 2 comments
Closed

Why can't I see some puppeteer calls in the protocol monitor? #5977

vsemozhetbyt opened this issue Jun 6, 2020 · 2 comments

Comments

@vsemozhetbyt
Copy link
Contributor

vsemozhetbyt commented Jun 6, 2020

Steps to reproduce

Tell us about your environment:

  • Puppeteer version:3.3.0 (chromium_revision 756035)
  • Platform / OS version: Windows 10 x64
  • Node.js version: 15.0.0-v8-canary20200603908772e6f4

What steps will reproduce the problem?

'use strict';

const puppeteer = require('puppeteer');

(async function main() {
  try {
    const browser = await puppeteer.launch({
      headless: false,
      defaultViewport: null,
      args: ['--lang=en', '--start-maximized'],
      devtools: true,
    });
    const [page] = await browser.pages();

    await page.goto('https://example.org/');

    await page.waitForFunction(
      () => window.protocolMonitorEnabled === true,
      { timeout: 0 }
    );

    // Here I toggle the protocol monitor on, open it,
    // run 'window.protocolMonitorEnabled = true'
    // and click on the page to transfer the focus from the DevTools (just in case).

    await page.waitFor(10000);
    await page.mouse.click(100, 100);

    await page.evaluate(() => {
      document.title = 'New title';
    });
  } catch (err) {
    console.error(err);
  }
})();

What is the expected result?

A bunch of Input.dispatchMouseEvent method calls before the title change.

What happens instead?

No Input.dispatchMouseEvent method calls:

1

(Let me know if I should post this to devtools protocol issues or if I am completely wrong about a possibility to listen to the calls from the puppeteer in such way.)

@stale
Copy link

stale bot commented Jun 26, 2022

We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days.

@stale stale bot added the unconfirmed label Jun 26, 2022
@stale
Copy link

stale bot commented Jul 26, 2022

We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accomodate it!

@stale stale bot closed this as completed Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant