Part01: WebdriverIO Mocha JavaScript: Crash Course (async)
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
Perfectly solved my issue. Absolutely useful video! Appreciate it!
Glad it helped.
Thank you! It was helpful! I will wait for more videos.
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
I have no words to say thanks to you. I was struggling but this video give me a clear view. Thank you
Happy to hear Gurjeet. Keep learning.
Please keep posting 👍
Sure buddy.
Great video , thanks for sharing. I have subscribed
you are always rocking my friend , glad to work with you.
same here buddy
Great course, thanks!
I will really appreciate and wait for a POM implementation for this example.
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
Nice video with clear understanding. Waiting for different scenarios in other web site as well....thank you
Glad you liked it. I am waiting for version 8 release to make complete mocha framework playlist.
Just tried this thing and its really productive
more of mocha will come after major version upgrade
excellent content
Thank you!! Keep learning and sharing
very very very helpful sir
Thank you Megha. keep learning..
Nice Video :)
Thanks Nutan
Awaiting for part 2 videos for mocha framework
mocha framework might take sometime, you can watch my cucumber video, most of concepts remains same here as well
We need more videos bro on this framework..hope you find time to go ahead in this series..
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.
@@TestAutomationHub Hay ... Thankyou for such a quick response..♥️
@@TestAutomationHub when will the release when can I expect a series on this ?
@@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
@@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
Great work with the video, I would really appreciate if you can post video basic auth login and headless feature as well.
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/
@@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.
@@sanjeevinikeerthi2053 Let me try to find something and get back to you
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)
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
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/
Hi , Good WDIO tutorials , Can you please provide some solution to generate allure report for parallel execution
Its same. Allure report handles it by default. No change required for parallel
Thank you so much sir. How to check the reports?
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).
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
video was recording with older version and hence you will see the difference. latest version you can follow and it will work for you.
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
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
is there a part 2 for wdio mocha framework ?
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.
When next videos are coming
soon releasing with v8
@@TestAutomationHub v8 is live
Auto completion is not working for me. Even though I followed ur each commands. Kindly help me on this
Hi Nandhini, restarting the vs code worked ?
@@TestAutomationHub thanks for quick response. Now it is working
How to read data from Excel files using webdriverIO Mocha
this should help www.geeksforgeeks.org/how-to-read-and-write-excel-file-in-node-js/
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!!
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
@@TestAutomationHub for mobile app. In devDependences shows 8.2
@@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
@@lucassilvaazevedo2808 I know very little about mobile testing, would suggest to post query on webdriverio gitter channel for help gitter.im/webdriverio/webdriverio
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)
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"
It is not working ,please let me know how to implement autoit in webdriverio ,have no idea about this one .
@@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
@@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
@@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