HomeWebDriverIO

Comments (9)

  • Thanks for the articles.

    Could you please explain mocha why we need it in webdriverIO framework?

    Mocha is a unit framework. I’m correct?

    Reply
  • mocha is a feature rich javascript test framework which runs on node.js

    Reply
  • Sir, appreciate your effort, but I am not successful, will try again the same.

    Reply
    • Author

      Hey Anurag,

      Thanks for your feedback. Kindly let me know where did you stuck so that i can help you in making your attempt a succesful one.

      Kind Regards,
      Ajay Lunia

      Reply
  • Hi Ajay,
    Firstly thanks a lot for this excellent blog and all of tutorials. I have a problem with wdio config file. When I create a wdio config file I get two errors also I didn’t create wdio.conf file. First error is;
    ERROR @wdio/cli:utils: A service failed in the ‘onPrepare’ hook
    Error: Unable to connect to selenium
    And the second one is;
    ERROR @wdio/cli:launcher: No specs found to run, exiting with failure
    I didn’t handle them.
    All my test runner code is below;
    C:\Users\TB5EC\Desktop\WebdriverIO Tutorial\node_modules\.bin>wdio run wdio.conf.js
    2019-12-21T12:05:30.792Z WARN @wdio/config:ConfigParser: pattern ./test/specs/**/*.js did not match any file

    Execution of 0 spec files started at 2019-12-21T12:05:30.827Z

    2019-12-21T12:05:31.048Z INFO @wdio/cli:launcher: Run onPrepare hook
    Starting ChromeDriver 79.0.3945.36 (3582db32b33893869b8c1339e8f4d9ed1816f143-refs/branch-heads/[email protected]{#614}) on port 4444
    Only local connections are allowed.
    Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
    2019-12-21T12:06:38.625Z ERROR @wdio/cli:utils: A service failed in the ‘onPrepare’ hook
    Error: Unable to connect to selenium
    at Timeout.hasStarted [as _onTimeout] (C:\Users\TB5EC\Desktop\WebdriverIO Tutorial\node_modules\selenium-standalone\lib\check-started.js:17:10)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)

    Continue…
    2019-12-21T12:06:38.636Z WARN @wdio/config:ConfigParser: pattern ./test/specs/**/*.js did not match any file
    2019-12-21T12:06:38.638Z ERROR @wdio/cli:launcher: No specs found to run, exiting with failure
    2019-12-21T12:06:38.638Z INFO @wdio/cli:launcher: Run onComplete hook

    Spec Files: 0 passed, 0 total (0% completed) in 00:01:07

    2019-12-21T12:06:38.643Z INFO @wdio/local-runner: Shutting down spawned worker
    2019-12-21T12:06:38.895Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
    2019-12-21T12:06:38.897Z INFO @wdio/local-runner: shutting down

    C:\Users\TB5EC\Desktop\WebdriverIO Tutorial\node_modules\.bin>

    Best wishes…

    Reply
  • I am also facing the same issue can any body please help me with the same.

    Reply

Leave a Reply to Loga Cancel reply

Your email address will not be published. Required fields are marked *