Comments (5)
Sounds good. I'm happy to make the change!
from webdriverio.
Today NODE_OPTIONS for WDIO is carried over to ChromeDriver; in turn, it is carried over to Electron (dev mode), and Electron crashes because of it.
Can you be more specific on this section? I don't quite get why certain environment variables available when starting Chromedriver cause Electron to crash.
I would also consider adding
shell: true
, so it closely resembles when the Electron is started directly from command line.
How is starting Electron related to starting Chromedriver?
from webdriverio.
Thank you.
How is starting Electron related to starting Chromedriver?
ChromeDriver starts Electron, and I think the shell env is likely carried over to Electron when ChromeDriver starts Electron, but I don't have a way to confirm this.
I also added in the below to the post:
Specifically, WDIO sets NODE_OPTIONS=' --loader ts-node/esm/transpile-only --no-warnings' (ref), which is carried over to ChromeDriver and, thus, Electron.
To verify the impact of this env, we can run:
NODE_OPTIONS=' --loader ts-node/esm/transpile-only --no-warnings' ./node_modules/.bin/electron
in Terminal, and Electron will crash.
from webdriverio.
Thanks for clarifying! I think the best solution would be to just filter out NODE_OPTIONS
as you mentioned in your alternative approach. Until we don't really have a reason why someone would need to control extra env vars for Chrome/Electron we shouldn't add any complexity.
Any contributions would be appreciated.
from webdriverio.
Thanks for reporting!
We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers!
from webdriverio.
Related Issues (20)
- [🐛 Bug]: <title> scroll direction(swipe up) in mobile is not working HOT 2
- [🐛 Bug]: Memory leak in execution and warning running mpm install HOT 1
- [🐛 Bug]: Issue with ShadowRootManager after refreshing the page HOT 1
- [🐛 Bug]: <@wdio/allure-reporter": "^8.39.0 generates green report even for the failed tests> HOT 1
- [🐛 Bug]: module system issue when using with vite and storybook HOT 2
- [🐛 Bug]: Webdriver Bidi command timed out HOT 10
- [🐛 Bug]: Cannot run iOS specs on Browserstack after upgrade to wdio v9 HOT 6
- [🐛 Bug]: V9: cannot run tests using node.js v18.16.0 HOT 1
- [🐛 Bug]: wdio v9 issue with selenium grid protected by basic auth HOT 4
- [🐛 Bug]: Browser runner hangs and times out on Firefox in wdio v9 HOT 3
- [🐛 Bug]: Cannot find mocha.css HOT 2
- [🐛 Bug]: Does not run the project with wdio-video-reporter HOT 1
- [🐛 Bug]: script execution doesn't work HOT 3
- [🐛 Bug]: Tests not running on grid after upgrading to wdio v9 HOT 2
- [🐛 Bug]: Some elements not detected by the new shadow element detection HOT 1
- [💡 Feature]: Add option to add console logs to junit report HOT 3
- [🐛 Bug]: Fix customElement wrapper for custom elements which don't define connectedCallback or disconnectedCallback
- [🐛 Bug]: XPath locators work differently since v9 HOT 2
- [🐛 Bug]: @wdio/appium-service: [AppiumDriver@3989] Error: WebSocket is not open: readyState 0 (CONNECTING) HOT 5
- [🐛 Bug]: v9 browser.mock take a lot of time if url length is above 25 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webdriverio.