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

Browser Driver executable missing after adding schematics #27

Open
vaibhavsingh97 opened this issue Apr 4, 2023 · 3 comments
Open

Browser Driver executable missing after adding schematics #27

vaibhavsingh97 opened this issue Apr 4, 2023 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@vaibhavsingh97
Copy link
Member

In the last few releases, the first test run fails after adding Nightwatch schematics in Angular Projects because the browser driver executable is missing. This is because we are installing browser drivers, but the post-install step doesn't run after the package is installed.

How to reproduce?

  • Create a new Angular Project
  • Add Nightwatch Schematics
  • Run first e2e tests

image

@vaibhavsingh97 vaibhavsingh97 added the help wanted Extra attention is needed label Apr 4, 2023
@marcin-wosinek
Copy link
Contributor

Looks downgrading the GeckoDriver to previous version works OK:

npm i geckodriver@3

The Nightwatch peer dependencies look to be too flexible—they take whatever is the newest version, including major release:

  "peerDependencies": {
    "@cucumber/cucumber": "*",
    "chromedriver": "*",
    "geckodriver": "*"
  },

@marcin-wosinek
Copy link
Contributor

marcin-wosinek commented May 26, 2023

It looks like an issue in node-geckodriver. The doc over there says:

Once installed you can start Geckodriver via:

npx geckodriver --port=4444

and it's not true in with version 4.

I've registered webdriverio-community/node-geckodriver#123

@marcin-wosinek
Copy link
Contributor

The Geckodriver issue is gone in version 4.0.4. Newly generated project works as expected, as soon as I update nightwatch.conf.js with:

    firefox: {
    ....  
       webdriver: {
         start_process: true,
-        server_path: '',
+        server_path: "./node_modules/.bin/geckodriver",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants