HomeWebDriverIO

Comments (12)

  • 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/3945@{#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
  • Hi Ajay,
    Really nice efforts, thank you very much for article.
    On this page some information is missing. By default config file will select chrome browser also after following exact steps I could not execute code.
    Second thing the website you have given is not working.

    Please check

    Reply
  • Hi Ajay ,
    i should say thank you for your great working here ,

    i have one doubts that i couldn’t figure out how to write scripting for checking the status of user that he login , Please help me on this query

    Reply
    • Author

      Hi Pramod,

      Thanks for your words.

      Pramod i said you earlier you need to learn Javascript first and need to understand basic concepts through my all the articles. I have even shared the script with you and by doing mentioned exercise you would be able to understand the script as well how user status has been validated. kindly follow the same and you will get your answer by yourself.

      Thanks & Regards,
      Ajay Lunia

      Reply

Leave a Reply

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

For FREE Testing Tutorials & Videos

X
Open chat
Contact Us on Whatsapp