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 ourterms of serviceand privacy statement.We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Chrome over WebDriver BiDi CDP sessions receive events that are not related to the session #12768

Closed
Tracked by #12728
OrKoNopened this issue Jul 17, 2024 · 2 comments
Assignees

Comments

@OrKoN
Copy link
Collaborator

OrKoN commented Jul 17, 2024

it.only('should send events', async () => {
const {page, server} = await getTestState();

const client = await page.createCDPSession();
await client.send('Network.enable');
const events: unknown[] = [];
client.on('*', function () {
console.log(arguments)
})
client.on('Network.requestWillBeSent', event => {
events.push(event);
});
await Promise.all([
waitEvent(client, 'Network.requestWillBeSent'),
page.goto(server.EMPTY_PAGE),
]);
expect(events).toHaveLength(1);
});

Expected: only network events are received
Actual: unrelated events are received

@OrKoN
Copy link
Collaborator Author

OrKoN commented Jul 17, 2024

@Lightning00BladeI will take a look into this

Copy link

We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm or reproduce it. The issue will be closed if no further activity occurs within the next 7 days. cc @puppeteer/bug-triage

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

2 participants