Mobile Automation Testing using WebdriverIO

  Рет қаралды 32,264

SDET Unicorns by Dilpreet Johal

SDET Unicorns by Dilpreet Johal

Күн бұрын

🌟Get started with Mobile Automation Testing using WebdriverIO & Appium. In this video, we will cover -
- Introduction (Appium & WebdriverIO)
- Pre-requisite & Setup
- Installation
- Config Overview & Setup
- Setup Appium Inspector
- Write Tests
- Interacting with Accessibility ID, Class Name & XPath
⏳𝐕𝐈𝐃𝐄𝐎 𝐂𝐇𝐀𝐏𝐓𝐄𝐑𝐒⏳
0:00 - Introduction & Overview
1:46 - Appium Introduction
4:32 - WebdriverIO Introduction
7:20 - Setup & Installation
11:31 - Appium Installation
16:35 - WebdriverIO Setup
24:05 - WebdriverIO Config
37:01 - Appium Port Issue
45:08 - Emulator Setup for Testing
54:14 - Android - Find by Accessibility Id
1:06:03 - Android - Find by Class Name
1:14:14 - Android - Find by XPath
1:28:18 - Course Details
📂 𝗩𝗶𝗱𝗲𝗼 𝗥𝗲𝘀𝗼𝘂𝗿𝗰𝗲𝘀:
🔥 Free PDF Guide - bit.ly/3ztOS6a
⭐️ SDET-U Academy - bit.ly/3CkdVud
🎁 Course Coupon - bit.ly/3EbeMP7
𝗦𝗮𝗺𝗽𝗹𝗲 𝗔𝗽𝗽 -
Sample App - github.com/automationbro/webd...
To learn more more, check out the WebdriverIO & Appium course using teh Academy link above which will teach you the latest version of Appium (2.0) and WebdriverIO (v7). Along the way, I will teach you all the best practices that will put on the path of becoming one of the Top Automation Engineer.
𝗛𝗲𝗿𝗲'𝘀 𝘄𝗵𝗮𝘁 𝘄𝗲 𝘄𝗶𝗹𝗹 𝗯𝗲 𝗰𝗼𝘃𝗲𝗿𝗶𝗻𝗴 𝗶𝗻 𝘁𝗵𝗶𝘀 𝗰𝗼𝘂𝗿𝘀𝗲:
- Appium & WebdriverIO Introduction
- Setup & Installation
- Different strategies to find elements for both iOS & Android apps
- Working with native features
- Practicing skills on a real-world application
- Page Object Model setup
- Building test framework
- Optimizing framework
- BrowserStack integration to run tests on cloud server
- GitHub Action for CI integration
- and much more...
All of the topics are taught with real examples. The course will include exercises & quizzes that will challenge you & allow you to practice what you learned.
This course will get constantly updated so that you no longer have to worry about outdated content.
✨ 𝐉𝐎𝐈𝐍 𝐀𝐮𝐭𝐨𝐦𝐚𝐭𝐢𝐨𝐧 𝐁𝐫𝐨 - 𝐃𝐢𝐥𝐩𝐫𝐞𝐞𝐭 𝐉𝐨𝐡𝐚𝐥✨
Channel Link:
🔗www.youtube.com/@dilpreetjoha...
📧 Subscribe to my mailing list for all the latest updates -
automationbro.com/mailing-list
✒️ Check out my blogs at - automationbro.com
🚀 Enjoying my content and would like to support my work? Why not buy me a coffee! or Subscribe to this channel! 🚀
www.buymeacoffee.com/automati...
www.youtube.com/@dilpreetjoha...
🍁 𝐀𝐁𝐎𝐔𝐓 𝐀𝐮𝐭𝐨𝐦𝐚𝐭𝐢𝐨𝐧 𝐁𝐫𝐨 - 𝐃𝐢𝐥𝐩𝐫𝐞𝐞𝐭 𝐉𝐨𝐡𝐚𝐥🍁
Hi, I'm Dilpreet, a seasoned SDET Consultant from Toronto with over 7 years of experience in the IT industry. As someone who began as a manual QA, I've acquired most of my knowledge through self-learning, and I'm a firm believer that it's never too late to start learning new skills.
I know first hand the challenges of not knowing where to start and feeling 'stuck.' That's why I've designed my teaching approach to be accessible and beginner-friendly, so you can confidently kickstart your learning journey.
This KZfaq channel is my platform to share valuable insights and expertise I've gained over the years, helping you learn new skills independently. We'll explore various programming languages, frameworks, and tools, ensuring you stay current with the latest trends and technologies.
Embark on your learning adventure by subscribing now and hitting the bell icon for video notifications. Let's transform your tech skills together!
📌𝗖𝗵𝗲𝗰𝗸𝗼𝘂𝘁 𝐀𝐮𝐭𝐨𝐦𝐚𝐭𝐢𝐨𝐧 𝐁𝐫𝐨 - 𝐃𝐢𝐥𝐩𝐫𝐞𝐞𝐭 𝐉𝐨𝐡𝐚𝐥'𝐬 𝗢𝘁𝗵𝗲𝗿 𝗩𝗶𝗱𝗲𝗼𝘀 🎥
➟Top 3 Mistakes of Test Automation Engineers Make | Automation Bro - Dilpreet Johal
🔗 • Top 3 Mistakes of Test...
➟Newman Data Driven Testing | Newman Postman Tutorial
🔗 • Newman Data Driven Tes...
➟Data Driven testing using Postman JSON file
🔗 • Data Driven testing us...
➟Harnessing AI in Test Automation: Exciting Upcoming Workshop! 🚀
🔗 • Harnessing AI in Test ...
💌 𝐋𝐄𝐓'𝐒 𝐒𝐓𝐀𝐘 𝐈𝐍 𝐓𝐎𝐔𝐂𝐇 💌
➟ Email - dilpreet@sdetunicorns.com
➟ Twitter: bit.ly/dilpreet-twitter
➟ LinkedIn: bit.ly/sdet-u-linkedin
➟ Dev.to: dev.to/automationbro
➟ Instagram: bit.ly/sdet-u-instagram
➟ Website: bit.ly/sdet-u-academy
Thanks for watching :)
#testautomation #appium #webdriverio
𝐑𝐞𝐥𝐚𝐭𝐞𝐝 𝐒𝐞𝐚𝐫𝐜𝐡𝐞𝐬:
webdriverio appium
webdriverio appium tutorial
webdriverio appium example
appium testing
appium automation
appium mobile testing

Пікірлер: 70
@thomasedison2806
@thomasedison2806 Жыл бұрын
This helps a lot not only for beginners but also as refreshers for those coming back to implement this again to a new project
@neerajnegi3041
@neerajnegi3041 Жыл бұрын
Great job done bro !! For Beginner your tutorials are really helpful
@sdetunicorns
@sdetunicorns Жыл бұрын
Thank you! Please support the channel by sharing the video with others :)
@maheshkumbhar4216
@maheshkumbhar4216 Жыл бұрын
Thank you for complete setup.
@dikshachauhan1876
@dikshachauhan1876 7 сағат бұрын
Thanks a lot for this detailed video
@mohamedkhlifi1199
@mohamedkhlifi1199 Жыл бұрын
This helped me a lot, thank you so much. But I have a question, how should I create a pipeline ro tun these tests. I need to create a pipeline (in Azure DevOps for example) and run it. I need a free solution.
@Focus-Automation
@Focus-Automation Жыл бұрын
Excellent 🙏Thanks ... How to upload documents in mobile web browser automation using Appium. Please help 🤗
@kasunishankayapa8823
@kasunishankayapa8823 6 ай бұрын
Great Job. Need a Flutter app automation using wdio.Cuz other videos on youtube I didn't see helpful and in order.
@user-ff6xo4nc9f
@user-ff6xo4nc9f 3 ай бұрын
How do you auto-create the blocks using vscode? are there any shortcuts or prior setup required to do so?
@shubhampatil132
@shubhampatil132 5 ай бұрын
the tests are passing but its not showing up in the emulator ( sample test ), would you please help why the android studio emulator not spinning instance of APIDemo app
@idrish_2186
@idrish_2186 10 ай бұрын
Can you make one vidio for Design Xpath of iOS.
@aparajeetaroy519
@aparajeetaroy519 Ай бұрын
Can we automate the mobile devices by just using webdriverIO & browserstack without using appium? If yes , can you please share. thanks
@user-uu5wv2dj1j
@user-uu5wv2dj1j 8 ай бұрын
Hey great video and very helpfull, but I am trying to re enter the value in the password field and couldn't find any solution, can you help me in this...
@TgSkyline
@TgSkyline Жыл бұрын
Hi, whats plugin or extesion use for automatic filling describe and it with arrow function?
@sdetunicorns
@sdetunicorns Жыл бұрын
ES6 Mocha Snippets
@TgSkyline
@TgSkyline Жыл бұрын
Thanks, I already put it to work!
@TalwinderDhillonTravels
@TalwinderDhillonTravels Жыл бұрын
do you have any videos on using this setup for MacOS apps testing?
@sdetunicorns
@sdetunicorns Жыл бұрын
I have a full course on this where I have covered both Android and iOS - academy.sdetunicorns.com/p/mobile-automation-with-appium-2-0-and-webdriverio
@TalwinderDhillonTravels
@TalwinderDhillonTravels Жыл бұрын
@@sdetunicorns I meant MacOS apps, not ios and android
@akashkumarbarnwal2295
@akashkumarbarnwal2295 7 ай бұрын
It was very nice video. One clarification please, Can we mock all the api call with dummy response? I mean I really don't want to involve real api call during e2e test.
@sdetunicorns
@sdetunicorns 7 ай бұрын
sure, you need to create a mock service then and ensure your app interacts with that mock service only.
@sean.d
@sean.d 7 ай бұрын
Hey, Loved your webdriverio mobile tutorial with uiautomator. Do you have a tutorial with espresso driver? I tried by changing automationName to Espresso but app did not launch? Any suggestions? Thanks!
@sdetunicorns
@sdetunicorns 7 ай бұрын
Thanks for watching the tutorial. Regarding your question about Espresso, make sure that your app includes Espresso dependencies. Double-check your capabilities and try a basic test with a different app to isolate the issue. Also, reviewing Appium server logs can be really helpful. I don't have an Espresso tutorial yet, but it's a great idea for future content.
@nomads_._land
@nomads_._land 4 ай бұрын
Clicking "send me the guide" doesn't.. it sends you an email asking you to go to their website and pay for the course
@user-uq4qe9yr6r
@user-uq4qe9yr6r Жыл бұрын
demo app doe not launch on the emulator. Is there any extra capability we need to add on appium ? is it require to give the mainActivity for the package as capability. Please help!
@sdetunicorns
@sdetunicorns Жыл бұрын
What error are you seeing?
@user-uq4qe9yr6r
@user-uq4qe9yr6r Жыл бұрын
when i open the demo app there is no accessibility id or content desc . is there any alternative to find those ? or have i setup the appium inspector incorrectly
@sdetunicorns
@sdetunicorns Жыл бұрын
You should see other selector options like resourceId or text which you can work with as well.
@anandmohandas8307
@anandmohandas8307 Жыл бұрын
Can you please help in saying how we can launch an application by using appActivity and appPackage for those application we dont have the apk file
@sdetunicorns
@sdetunicorns Жыл бұрын
Yes, you can. Here's an example -collabedit.com/hfa2s
@anandmohandas8307
@anandmohandas8307 Жыл бұрын
@@sdetunicorns Thanks a lot this was helpful, but I found an article recently that wdio is having an issue that if apk file is not provided, its unable to identify the activity and package.
@geethaguptha6812
@geethaguptha6812 Жыл бұрын
can't seem to get the android emulator and the app launched...on trying to run npx wdio could see that the test has been skipped --any help would be appreciated
@sdetunicorns
@sdetunicorns Жыл бұрын
It could be due to many reasons, likely the way your config is setup. But the easiest way would be to make sure the path is correct in config file for your specs
@connectSanjayMali
@connectSanjayMali Жыл бұрын
A app initially takes 60/100 sec to configure everything. In that case ideally i'm using xpath, find out that button text. DATA { using: 'xpath', value: '//*[@text=" Alle Cookies akzeptieren "]' } ERROR webdriver: Request failed with status 404 due to invalid session id: A session is either terminated or not started
@mohammadkhizar8103
@mohammadkhizar8103 11 ай бұрын
I am getting this Error: Unable to load spec files quite likely because they rely on `browser` object that is not fully initialised. `browser` object has only `capabilities` and some flags like `isMobile`.
@sdetunicorns
@sdetunicorns 11 ай бұрын
So this is a generic error webdriverio throws sometime, you need to look at the error in detail to figure out the root cause.
@52aaju68gdcz
@52aaju68gdcz Жыл бұрын
hello, when i run "npx wdio" i get an error "@wdio/cli:launcher: no specs found to run, exiting with failure". can you please help me
@dbuendia
@dbuendia Жыл бұрын
Did you manage to get it working? I'm facing the same issue right now.
@shubhampatil132
@shubhampatil132 5 ай бұрын
@@dbuendia you need to mention the test folder path in config file
@kiddo4170
@kiddo4170 Жыл бұрын
Can u please help me with following error : Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported
@sdetunicorns
@sdetunicorns Жыл бұрын
Checkout this thread to get SDK dir setup - stackoverflow.com/questions/28789556/android-studio-sdk-tools-directory-is-missing
@NeerajkumarLad
@NeerajkumarLad 10 ай бұрын
Do I need to start appium server in background ?
@sdetunicorns
@sdetunicorns 10 ай бұрын
No WebdriverIO will spin it up
@ankitsakhuja634
@ankitsakhuja634 Жыл бұрын
Hi, where is the apk app link, it's not mentioned in pdf as well as in the description
@sdetunicorns
@sdetunicorns Жыл бұрын
You can find that here - github.com/automationbro/webdriverio-appium-course/tree/master/app/android
@sakhile5914
@sakhile5914 Жыл бұрын
I get this error when I run npx appium driver list - error: unrecognized arguments: driver list
@sdetunicorns
@sdetunicorns Жыл бұрын
Make sure you have Appium 2.0 installed otherwise it would throw this error
@sakhile5914
@sakhile5914 Жыл бұрын
@@sdetunicorns Thanks it now shows the divers list. however when trying to run the npx wdio I get the following errors: ERROR @wdio/cli:utils: A service failed in the 'onPrepare' hook, Error: "ts-node/esm/transpile-only 'resolve'" did not call the next hook in its chain and did not explicitly signal a short circuit. If this is intentional, include `shortCircuit: true` in the hook's return.
@sakhile5914
@sakhile5914 Жыл бұрын
please help
@kirankumarireddykiran7409
@kirankumarireddykiran7409 4 ай бұрын
How to connect to real devices ??
@garymathe9863
@garymathe9863 2 ай бұрын
Connect your device to your laptop with a USB (-C) cable and it will show up in the Android Studio Device Manager
@sakhile5914
@sakhile5914 Жыл бұрын
I cant believe I did everything that on this video but Im still geting errors
@sdetunicorns
@sdetunicorns Жыл бұрын
Setup is one of the most difficult parts. With the changes happening in WDIO, some of these settings needs to get updated again. You can join our community to get help with support issues like these - bit.ly/3SBTtKb
@geethamaddirala
@geethamaddirala 10 ай бұрын
my appium inspector is not loading app
@sdetunicorns
@sdetunicorns 10 ай бұрын
What error are you getting?
@geethamaddirala
@geethamaddirala 10 ай бұрын
@@sdetunicorns I am trying load mytra app. So page headers are loding like women,men etc and complete page is blank.
@user-ce6gp1sd7t
@user-ce6gp1sd7t Жыл бұрын
Hi guys, Im getting this error log when trying to run npx wdio, do you guys have any idea to workaround?? D:\WebdriverIO\APPIUM\webdriverio-appium ode_modules\@wdio\cli\build\launcher.js:42 const Runner = (0, _config.initialisePlugin)(config.runner, 'runner'); ^ TypeError: (0 , _config.initialisePlugin) is not a function at new Launcher (D:\WebdriverIO\APPIUM\webdriverio-appium ode_modules\@wdio\cli\build\launcher.js:42:49) at launch (D:\WebdriverIO\APPIUM\webdriverio-appium ode_modules\@wdio\cli\build un.js:92:20) at run (D:\WebdriverIO\APPIUM\webdriverio-appium ode_modules\@wdio\cli\build un.js:68:12) at Object.run (D:\WebdriverIO\APPIUM\webdriverio-appium ode_modules\@wdio\cli\build\index.js:45:20) at Object. (D:\WebdriverIO\APPIUM\webdriverio-appium ode_modules\@wdio\cli\bin\wdio.js:11:21) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
@sdetunicorns
@sdetunicorns Жыл бұрын
Seems to be an issue with the configuration in your wdio.conf.js file
@IvanKunitskiy
@IvanKunitskiy Жыл бұрын
Could somebody help me with the next problem? Running the 'npx wdio' I get the error: - ERROR @wdio/cli:utils: A service failed in the 'onPrepare' hook
@sakhile5914
@sakhile5914 Жыл бұрын
Im also getting the same error. did you manage to find the solution ?
@lucassilvaazevedo2808
@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!!
@sdetunicorns
@sdetunicorns Жыл бұрын
Please share the entire error log that you are seeing
@lucassilvaazevedo2808
@lucassilvaazevedo2808 Жыл бұрын
2023-01-25T12:50:05.879Z INFO @wdio/cli:launcher: Run onPrepare hook 2023-01-25T12:50:07.957Z ERROR @wdio/appium-service: Appium exited before timeout (exit code: 2) [HTTP] Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already. 2023-01-25T12:50:07.959Z ERROR @wdio/cli:utils: A service failed in the 'onPrepare' hook Error: Appium exited before timeout (exit code: 2) [HTTP] Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already. [0-0] 2023-01-25T12:50:10.110Z ERROR webdriver: Request failed with status 404 due to unknown command: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource [0-0] 2023-01-25T12:50:10.110Z ERROR webdriver: unknown command: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource [0-0] 2023-01-25T12:50:10.111Z ERROR @wdio/runner: Error: Failed to create session. [0-0] The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource
@lucassilvaazevedo2808
@lucassilvaazevedo2808 Жыл бұрын
[debug] [HTTP] No route found for /session [HTTP] POST /session [HTTP] {"capabilities":{"alwaysMatch":{"platformName":"Android","appium:platformVersion":"13.0","appium:deviceName":"Pixel 2","appium:app":"app/android/app-debug.apk"},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"Android","appium:platformVersion":"13.0","appium:deviceName":"Pixel 2","appium:app":"app/android/app-debug.apk"}}
@lucassilvaazevedo2808
@lucassilvaazevedo2808 Жыл бұрын
I bought your course on udemy
@sakhile5914
@sakhile5914 Жыл бұрын
@@lucassilvaazevedo2808 did you manage to get those error resolved ?
🍎 MOBILE Automation TESTING with APPIUM + WEBDRIVER.IO (IOS)
48:06
API Automation Testing Full Course | JavaScript API Automation
2:24:01
SDET Unicorns by Dilpreet Johal
Рет қаралды 52 М.
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 5 МЛН
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 70 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 51 МЛН
Getting Started with WebdriverIO | Complete Tutorial for Beginners Step by Step
56:49
Appium Setup On Windows Platform | 2024 Latest Setup
50:05
AUTOMATION WITH PRIYANKA
Рет қаралды 7 М.
WebdriverIO Tutorial | Full Crash Course | Latest Version
1:23:00
SDET Unicorns by Dilpreet Johal
Рет қаралды 1,8 М.
MOBILE Automation TESTING with APPIUM + WEBDRIVER.IO (ANDROID)
1:00:27
Core Test Automation Framework Strategy for Web/API/Mobile Applications
36:43
Naveen AutomationLabs
Рет қаралды 141 М.
QA Interview QUESTIONS
1:17:14
Test Pro
Рет қаралды 213 М.
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 22 МЛН
PART 52 || DIY Wireless Switch forElectronic Lights - Easy Guide!
1:01
HUBAB__OFFICIAL
Рет қаралды 48 МЛН
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 449 М.