You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
}
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:
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:
npm install
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
The text was updated successfully, but these errors were encountered: