Part01: WebdriverIO Mocha JavaScript: Crash Course (async)

Sdílet
Vložit
  • čas přidán 3. 07. 2021
  • #webdriverio #javascript #mocha #nodejs
    In this video, We will setup base framework using webdriverio and mocha, write one test with basic assertion.
    Commands:
    --------------------
    npm init
    npm i @wdio/cli
    npx wdio config
    Links:
    ---------
    Git Repository: github.com/testSadab/Webdrive...
    WebdriverIO official website: webdriver.io/
    Thanks for watching

Komentáře • 89

  • @mosh5521
    @mosh5521 Před 2 lety

    Perfectly solved my issue. Absolutely useful video! Appreciate it!

  • @olenafedorova603
    @olenafedorova603 Před 2 lety

    Thank you! It was helpful! I will wait for more videos.

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety

      Glad it helped. Waiting for version 8 release to make complete mocha framework playlist. Until then you can explore another playlist wdio with cucumber. Webdriverio concept remains same there as well czcams.com/play/PLGk7ftfMz7jbZcArQU894rAfo6B1PbXbG.html

  • @gurjeetsingh-sd2wj
    @gurjeetsingh-sd2wj Před 2 lety

    I have no words to say thanks to you. I was struggling but this video give me a clear view. Thank you

  • @piyushmathpal4244
    @piyushmathpal4244 Před 3 lety +2

    Please keep posting 👍

  • @fazlesaifullah
    @fazlesaifullah Před 11 měsíci

    Great video , thanks for sharing. I have subscribed

  • @mjj3tube
    @mjj3tube Před 2 lety

    you are always rocking my friend , glad to work with you.

  • @franciscojavierramirezhern8588

    Great course, thanks!
    I will really appreciate and wait for a POM implementation for this example.

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety

      glad you liked it Francisco. For you can check out my BDD series where i have explain POM concept as well which remains same in mocha and cucumber czcams.com/video/myzMuXLOBTY/video.html

  • @karthikdevadiga5926
    @karthikdevadiga5926 Před 2 lety

    Nice video with clear understanding. Waiting for different scenarios in other web site as well....thank you

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety

      Glad you liked it. I am waiting for version 8 release to make complete mocha framework playlist.

  • @mjj3tube
    @mjj3tube Před 2 lety

    Just tried this thing and its really productive

  • @skclipzz
    @skclipzz Před 2 lety

    excellent content

  • @meghakalal2918
    @meghakalal2918 Před 2 lety

    very very very helpful sir

  • @nutanchaudhari3372
    @nutanchaudhari3372 Před 2 lety +1

    Nice Video :)

  • @nandhiniselvaraj9534
    @nandhiniselvaraj9534 Před 2 lety

    Awaiting for part 2 videos for mocha framework

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety +1

      mocha framework might take sometime, you can watch my cucumber video, most of concepts remains same here as well

  • @amarbhiogade4636
    @amarbhiogade4636 Před 2 lety

    We need more videos bro on this framework..hope you find time to go ahead in this series..

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety

      I wish i could do now but i am keeping it on hold until version 8 release. Join telegram group t.me/webdriverio where you can post your queries on wdio.

    • @amarbhiogade4636
      @amarbhiogade4636 Před 2 lety +2

      @@TestAutomationHub Hay ... Thankyou for such a quick response..♥️

    • @Visnuleo
      @Visnuleo Před 2 lety

      @@TestAutomationHub when will the release when can I expect a series on this ?

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety

      @@Visnuleo i follow webdriverio updates on twitter, they do keep updated about the status but not sure on the release date. you can follow them
      twitter.com/webdriverio/status/1542140096459247617?cxt=HHwWgsC4teiP5OYqAAAA

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety

      @@Visnuleo meanwhile you can watch my other webdriverio cucumber playlist from where you can learn wdio and implement in mocha framework
      czcams.com/play/PLGk7ftfMz7jbZcArQU894rAfo6B1PbXbG.html

  • @sanjeevinikeerthi2053
    @sanjeevinikeerthi2053 Před 2 lety

    Great work with the video, I would really appreciate if you can post video basic auth login and headless feature as well.

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety +1

      Hi Sangeevini, glad you liked the content. I will continue with this playlist once I complete BDD with typescript one. About base auth login, there is no explicit method available in wdio that I am aware of, you can try usual way that we follow in selenium, adding creds in url as below
      username:password@your_website_url
      for headless check capabilities section in webdriver.io/docs/configurationfile/

    • @sanjeevinikeerthi2053
      @sanjeevinikeerthi2053 Před 2 lety +1

      @@TestAutomationHub Thank you for the quick reply, I tried the method of adding username and password with url, this method is not supported for new chrome versions.

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety

      @@sanjeevinikeerthi2053 Let me try to find something and get back to you

  • @bhavyagowda8116
    @bhavyagowda8116 Před 2 lety

    How to upload files in webdriverio and in my case we are not having input tag , after clicking on browser link windows explorer will opena so need to select files from wondow frames (wondow explorer dialogue box)

  • @kidzbesties2173
    @kidzbesties2173 Před rokem +1

    Hi... Nice video and very useful bcz it explains from scratch. But it's related to web apps, can you please share the update like how the same thing works for mobile app Automation (appium) with same frame work

    • @TestAutomationHub
      @TestAutomationHub  Před rokem

      I am not very good in wdio with appium. I will suggest to check udemy course of Dilpreet www.udemy.com/course/appium-webdriverio-mobile-automation/

  • @PRADEEPKUMAR-dv5yt
    @PRADEEPKUMAR-dv5yt Před 6 měsíci

    Hi , Good WDIO tutorials , Can you please provide some solution to generate allure report for parallel execution

    • @TestAutomationHub
      @TestAutomationHub  Před měsícem

      Its same. Allure report handles it by default. No change required for parallel

  • @dipti2379
    @dipti2379 Před rokem +1

    Thank you so much sir. How to check the reports?

    • @TestAutomationHub
      @TestAutomationHub  Před rokem +1

      depends on which report you want to configure, you need to follow few steps. Check my other videos of cucumber playlist in which i covered for allure report (same applies for mocha as well).

  • @BoredThatsWhy
    @BoredThatsWhy Před rokem +1

    14:25 your code was created and the first line says import but mine says require. How do I get the default to load as import and not require? I am running Node.js 18.
    I followed the video exactly from start

    • @TestAutomationHub
      @TestAutomationHub  Před rokem

      video was recording with older version and hence you will see the difference. latest version you can follow and it will work for you.

  • @archanamuthukrishnan6465

    Hello
    I am trying to launch chrome from webdriverio but facing error 500 "it is using 98 version but it is compatible with version 99".i have downloaded latest chromedriver.exe file and configured under wdio.confg file , then getting error -4508 ENOENT error .can you please help

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety

      if you chrome version is updated then run these two command
      npm uninstall chromedriver
      npm install chromedriver --save-dev
      first will uninstall existing one and second will download latest. you don't have make any changes in wdio.conf.ts file

  • @rijo-johnson
    @rijo-johnson Před 2 lety

    is there a part 2 for wdio mocha framework ?

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety

      No Rijo. I have a plan to create with mocha framework next year beginning with new updates. you can watch my cucumber framework video and then use in mocha as code remains same everywhere, cucumber you write in step definition and mocha you write in descript it block.

  • @mamtaalane6888
    @mamtaalane6888 Před rokem +2

    When next videos are coming

  • @nandhiniselvaraj9534
    @nandhiniselvaraj9534 Před 2 lety

    Auto completion is not working for me. Even though I followed ur each commands. Kindly help me on this

  • @rajeshgummella8989
    @rajeshgummella8989 Před rokem

    How to read data from Excel files using webdriverIO Mocha

    • @TestAutomationHub
      @TestAutomationHub  Před rokem

      this should help www.geeksforgeeks.org/how-to-read-and-write-excel-file-in-node-js/

  • @lucassilvaazevedo2808

    Someone could help me please? I don't know what to do.
    When ai run: npm run wdio
    ERROR @wdio/appium-service: Appium exited before timeout (exit code: 2)
    ERROR @wdio/cli:utils: A service failed in the 'onPrepare' hook
    ERROR webdriver: Request failed with status 404 due to unknown command
    ERROR webdriver: unknown command: The requested resource could not be found, or a req
    uest was received using an HTTP method that is not supported by the mapped resource
    ERROR @wdio/runner: Error: Failed to create session.
    I'm tanking all of this erros.
    Please, someone help me!!

    • @TestAutomationHub
      @TestAutomationHub  Před rokem

      are you using webriverio for mobile app or web app? have you created new framework or existing one? which version of wdio/cli you are using.
      If you are just starting then i will suggest to watch czcams.com/play/PLGk7ftfMz7jbF-vCLxaE0-zrW_gj6V9YG.html

    • @lucassilvaazevedo2808
      @lucassilvaazevedo2808 Před rokem

      @@TestAutomationHub for mobile app. In devDependences shows 8.2

    • @lucassilvaazevedo2808
      @lucassilvaazevedo2808 Před rokem

      @@TestAutomationHub I’m startups in automáticos test, and gave to me the challenge to make automation test in the company’s app and I’m Working I’m this. But I’m stopped in this errors

    • @TestAutomationHub
      @TestAutomationHub  Před rokem

      @@lucassilvaazevedo2808 I know very little about mobile testing, would suggest to post query on webdriverio gitter channel for help gitter.im/webdriverio/webdriverio

  • @bhavyagowda8116
    @bhavyagowda8116 Před 2 lety +1

    How to upload files in webdriverio and in my case we are not having input tag , after clicking on browser link windows explorer will opena so need to select files from wondow frames (wondow explorer dialogue box)

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety

      you should look for attribute type="file" . Try using await browser.uploadFile() if it is still not working then you might have to go with AutoIt external lib which is quit complex to implement and does not give consistent result. also autoit is not compatible with CICD. best option would be to ask you dev to update the html tag as input with attribute type="file"

    • @bhavyagowda8116
      @bhavyagowda8116 Před 2 lety

      It is not working ,please let me know how to implement autoit in webdriverio ,have no idea about this one .

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety

      @@bhavyagowda8116 the process is bit lengthy and complex which is hard to explain in here. Also as I told auto it has limitations which you need to consider before thinking of implementation, your code will not run in headless mode and also in CICD like Jenkins, so why not try talking to your developer and see if they can make changes or else join telegram channel t.me/webdriverio and discuss there in details

    • @bhavyagowda8116
      @bhavyagowda8116 Před 2 lety

      @@TestAutomationHubin my project we are not using headless or cicd pipeline and I am running script in my local only .. developers will not update html Tag for automation..atlest i need to run script in my locally and I am using typescript with webdriverio so have no idea about how to use autoit in webdriverio ..please share me the code

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety

      @@bhavyagowda8116 first explore how you can create exe file using autoit. you can find many example on youtube with selenium. once you are able to create the au3 and exe file then follow gist.github.com/sadabnepal/de008f6647b826b9533f72dad712feea