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

mutation-listener.js file missing in published NPM package #8955

Closed
systemboogie opened this issue Dec 10, 2020 · 1 comment
Closed

mutation-listener.js file missing in published NPM package #8955

systemboogie opened this issue Dec 10, 2020 · 1 comment
Labels

Comments

@systemboogie
Copy link

Bug report

There is the mutation-listener.js file missing in the selenium-webdriver@4.0.0-alpha.8 package published to NPM.

Trying to listen to DOM mutations fails with the following error:

Error: ENOENT: no such file or directory, open '../../cdp-support/mutation-listener.js'
    at Object.openSync (node:fs:487:3)
    at Object.readFileSync (node:fs:388:35)
    at Driver.logMutationEvents (/Users/marcus.noll/Documents/git/selenium-webdriver-bug/node_modules/selenium-webdriver/chromium.js:888:33)
    at processTicksAndRejections (node:internal/process/task_queues:93:5)
    at async example (/Users/marcus.noll/Documents/git/selenium-webdriver-bug/index.js:7:9) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '../../cdp-support/mutation-listener.js'
}

To reproduce

I just stripped down the test code for logMutationEvents and changed it to work with the published NPM package.

Find it here:
https://github.com/systemboogie/logmutation-events-bug

Run it with:

  1. npm install
  2. npm start

Expected behavior

mutation-listener.js is contained in the NPM package and it's therefore possible to use logMutationEvents without error.

Environment

Browser: Chrome

@ghost ghost closed this as completed Dec 10, 2020
@diemol
Copy link
Member

diemol commented Dec 10, 2020

The bot is quite sensitive, we need to improve that. This issue seems valid (in content, at least :))

@diemol diemol reopened this Dec 10, 2020
@SeleniumHQ SeleniumHQ deleted a comment Dec 10, 2020
@SeleniumHQ SeleniumHQ deleted a comment Dec 10, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants