Giter Club home page Giter Club logo

Comments (10)

EndangeredMassa avatar EndangeredMassa commented on July 17, 2024

README issues addressed here: #134

What version of testium was this? ENOENT issues should have been fixed in 2.5.0 here: #128

from testium.

EndangeredMassa avatar EndangeredMassa commented on July 17, 2024

Global support discussed here: #136

from testium.

EndangeredMassa avatar EndangeredMassa commented on July 17, 2024

When I try this locally without java and without a local chromedriver, I get:

See the full log at: /home/smassa/source/testium/test/integration_log/selenium.log
Error: Unable to find java
  at errnoException (child_process.js:1011:11)
  at Process.ChildProcess._handle.onexit (child_process.js:802:34)

@searls what exactly did you see when trying this locally? How can I reproduce it?

from testium.

searls avatar searls commented on July 17, 2024

I am running 2.5.0

When node_modules/testium/bin/chromedriver does not exist (e.g. I haven't run --download-selenium yet), I get:

> testium --browser chrome

Preparing chrome...

/Users/justin/code/testdouble/my-project/node_modules/testium/lib/cli/console.js:112
      throw error;
            ^
Error: ENOENT, stat '/Users/justin/code/testdouble/my-project/node_modules/testium/bin/chromedriver'

npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "test-console"
npm ERR! node v0.10.32
npm ERR! npm  v2.1.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] test-console: `testium --browser chrome`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the [email protected] test-console script.
npm ERR! This is most likely a problem with the my-project package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     testium --browser chrome
npm ERR! You can get their info via:
npm ERR!     npm owner ls my-project
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/justin/code/testdouble/my-project/npm-debug.log

from testium.

searls avatar searls commented on July 17, 2024

You should be able to reproduce by just running rm node_modules/testium/bin/chromedriver and then running testium --browser chrome

from testium.

EndangeredMassa avatar EndangeredMassa commented on July 17, 2024

When I try removing chromedriver and java, I don't see that error.

Are you running that with a local testium? The example makes it appear to be global.

from testium.

searls avatar searls commented on July 17, 2024

That was executed with npm run test-console which is configured in package.json as:

    "test-console": "./node_modules/.bin/testium --browser chrome"

from testium.

EndangeredMassa avatar EndangeredMassa commented on July 17, 2024

Ah, I managed to reproduce this. Will fix.

from testium.

EndangeredMassa avatar EndangeredMassa commented on July 17, 2024

Fix for running without a local chromdriver: #137

from testium.

EndangeredMassa avatar EndangeredMassa commented on July 17, 2024

Closing this issue in favor of linked issues/PRs.

from testium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.