BEST Tutorial EVER! The one and the only that helped me to set up the project after WEEKS ot trying. Thank you very much! Keep up the great work! Respect for you Sir.
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.
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!
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.
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.
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
Hey, I made your step by step tutorial but Im not able to run a test. Im having the port issue that you mentioned in the video, I made the same as you indicated but still having the same problem :(
@@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.
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...
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
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
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
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!
Hi bro could you please make a video on setting up and running both the Appium server and a Python automation script on the same Android device? I Mean... In Same Android testing (Appium server and python script execution) have to run in background In the same Android mobile Automation work also have to run Is it possible...? If it is possible make video on it...
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`.
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 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.
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
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
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)
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!!
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
[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"}}
BEST Tutorial EVER! The one and the only that helped me to set up the project after WEEKS ot trying. Thank you very much! Keep up the great work! Respect for you Sir.
This helps a lot not only for beginners but also as refreshers for those coming back to implement this again to a new project
Great job done bro !! For Beginner your tutorials are really helpful
Thank you! Please support the channel by sharing the video with others :)
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.
sure, you need to create a mock service then and ensure your app interacts with that mock service only.
How do you auto-create the blocks using vscode? are there any shortcuts or prior setup required to do so?
Hi, whats plugin or extesion use for automatic filling describe and it with arrow function?
ES6 Mocha Snippets
Thanks, I already put it to work!
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!
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.
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.
Thank you for complete setup.
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
Did you manage to get it working? I'm facing the same issue right now.
@@dbuendia you need to mention the test folder path in config file
Excellent 🙏Thanks ... How to upload documents in mobile web browser automation using Appium.
Please help 🤗
do you have any videos on using this setup for MacOS apps testing?
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
@@sdetunicorns I meant MacOS apps, not ios and android
Thanks a lot for this detailed video
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
Can you make one vidio for Design Xpath of iOS.
Great Job. Need a Flutter app automation using wdio.Cuz other videos on youtube
I didn't see helpful and in order.
Hey, I made your step by step tutorial but Im not able to run a test. Im having the port issue that you mentioned in the video, I made the same as you indicated but still having the same problem :(
Were you able to resolve that?
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
Yes, you can. Here's an example -collabedit.com/hfa2s
@@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.
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...
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
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
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
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!
What error are you seeing?
Hi bro
could you please make a video on setting up and running both the Appium server and a Python automation script on the same Android device?
I Mean...
In Same Android testing (Appium server and python script execution) have to run in background
In the same Android mobile Automation work also have to run
Is it possible...?
If it is possible make video on it...
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`.
So this is a generic error webdriverio throws sometime, you need to look at the error in detail to figure out the root cause.
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
You should see other selector options like resourceId or text which you can work with as well.
Clicking "send me the guide" doesn't.. it sends you an email asking you to go to their website and pay for the course
Do I need to start appium server in background ?
No WebdriverIO will spin it up
Can u please help me with following error : Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported
Checkout this thread to get SDK dir setup - stackoverflow.com/questions/28789556/android-studio-sdk-tools-directory-is-missing
Hi, where is the apk app link, it's not mentioned in pdf as well as in the description
You can find that here - github.com/automationbro/webdriverio-appium-course/tree/master/app/android
I get this error when I run npx appium driver list - error: unrecognized arguments: driver list
Make sure you have Appium 2.0 installed otherwise it would throw this error
@@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.
please help
my appium inspector is not loading app
What error are you getting?
@@sdetunicorns I am trying load mytra app. So page headers are loding like women,men etc and complete page is blank.
How to connect to real devices ??
Connect your device to your laptop with a USB (-C) cable and it will show up in the Android Studio Device Manager
I cant believe I did everything that on this video but Im still geting errors
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
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
Im also getting the same error. did you manage to find the solution ?
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)
Seems to be an issue with the configuration in your wdio.conf.js file
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!!
Please share the entire error log that you are seeing
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
[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"}}
I bought your course on udemy
@@lucassilvaazevedo2808 did you manage to get those error resolved ?