Appium Beginner Tutorial 15 | How to setup iOS Automation on Mac OS

  Рет қаралды 170,320

Automation Step by Step

Automation Step by Step

Күн бұрын

Пікірлер
@hasmukhrpatel
@hasmukhrpatel 5 жыл бұрын
Hi Ragav, your this video pulled me out of iOS setup for which I was struggling from weeks. You are the Best. Thanks for your hard work behind this to make understand people who want to get into automation.
@RaghavPal
@RaghavPal 5 жыл бұрын
Happy and humbled to know this Hasmukh
@simplyjajaph
@simplyjajaph 2 жыл бұрын
The Best tutorial I have ever seen.
@RaghavPal
@RaghavPal 2 жыл бұрын
Thanks a lot Janine
@NgoLeung
@NgoLeung 3 жыл бұрын
Hello, I would like to ask how to initialize the WebDriverAgent in Appium 1.21 version as the directory of WebDriverAgent cannot be found in appium-xcuitest-driver. Thank you very much
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi, I will need to check on this, Pls try some online help meanwhile
@arjuneol
@arjuneol 3 жыл бұрын
@@RaghavPal Facing the same. Any solution?
@cristinadautova4698
@cristinadautova4698 3 жыл бұрын
Hello! Thank you for the video, it was useful for me. But since then following has changed: 1) location: /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent 2) no need to run ./Scripts/bootstrap.sh -d for appium > 1.20 3) 'instruments -s devices' deprecated in Xcode 13, instead use 'xcrun xctrace list devices'
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks for adding Cristina I will check and plan new sessions
@cbt121314
@cbt121314 3 жыл бұрын
thank you 👍
@syedshadabgilani9547
@syedshadabgilani9547 3 жыл бұрын
Really helpful. How to get app package and app activity of native app - ios device ?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Syed, see if this helps 1. Unlock mobile device 2. Open CMD 3. Run command : adb devices 4. Run command : adb shell 5. On mobile store open the app that you want to check 6. Run command : dumpsys window windows | grep -E ‘mCurrentFocus’ 7. appPackage and appActivity name will get displayed. Copy from here www.automationtestinghub.com/apppackage-and-appactivity-name/
@amitpanc
@amitpanc 3 жыл бұрын
This is the best tutorial I have found. Everything from scratch.
@RaghavPal
@RaghavPal 3 жыл бұрын
So happy to know Amit
@vikpa1211
@vikpa1211 5 жыл бұрын
what to o if all 8 steps was successfully done but next step not? I cant find WebDriverAgent folder when I put path For Appium Desktop. Plus when I run ./Scripts/bootstrap.sh -d it is says 'no such file or directory'. Thanks for answer!
@arhimel
@arhimel 5 жыл бұрын
in latest Appium webdriveragent folder can be found in xcuitest/node-moodules/{here}
@RaghavPal
@RaghavPal 5 жыл бұрын
Thanks for the inputs Rasul. Viktor pls check
@vikpa1211
@vikpa1211 5 жыл бұрын
@@RaghavPal still cant find maybe it is because it was installed only Appium for desktop? (not through node)
@RaghavPal
@RaghavPal 5 жыл бұрын
You can check that and also a diff ver if required.
@vikpa1211
@vikpa1211 5 жыл бұрын
@@RaghavPal thanks!
@ajivinister
@ajivinister 3 жыл бұрын
Hi Raghav, I am using macOS in virtual box (Big Sur). Inside Appium-xcuitest-driver folder, I can see index.js, package.json, README.md, LICENSE, lib, build. I could find the WebDriverAgent in the given location, please advice.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi, For new versions here is the path of WebDriverAgent for Appium Desktop: /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent For Appium installed through node: /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent
@islamgalal4483
@islamgalal4483 10 ай бұрын
hii I have below error once press on build ( what done here in 24:05 ) ld: cannot link directly with 'XCTAutomationSupport' because product being built is not an allowed client of it clang: error: linker command failed with exit code 1 (use -v to see invocation)
@RaghavPal
@RaghavPal 10 ай бұрын
Islam Can try these: 1. Xcode Version 14 or Later: - Update Appium Server: Ensure you're using the latest Appium version (2.0 or later) which has a fix for this issue. - Install Latest XCUITest Driver: Run `appium driver install xcuitest` or `appium driver update xcuitest`. - Use Prebuilt WDA: If updating Appium isn't feasible, download the prebuilt WebDriverAgent (WDA) and use the `usePrebuiltWDA` capability in your test scripts. 2. Missing or Incorrect Framework Linking: - Check Linked Frameworks: In Xcode, verify that "XCTAutomationSupport.framework" is listed under "Linked Frameworks and Libraries" in the "General" tab of your project settings. - Manually Add Framework: If it's missing, add it manually. - Embed Framework: If it's already listed, change its "Embed" setting to "Embed & Sign". 3. Xcode Signing Issues: - Clean and Rebuild: Clean your project (Product > Clean Build Folder) and then rebuild. - Verify Signing: If you're using custom signing profiles, ensure they're configured correctly. 4. Conflicting Dependencies: - Check Dependencies: Review your project's dependencies for any conflicts with XCTAutomationSupport. - Update/Remove Conflicting Libraries: Update or remove conflicting libraries. Additional Troubleshooting: - Restart Xcode: Sometimes a simple restart can resolve linking issues. - Delete Derived Data: Delete the Derived Data folder (located at ~/Library/Developer/Xcode/DerivedData) to clear potential build issues. - Check Linker Flags: Review linker flags in your project's build settings for any potential conflicts. ..
@ViCS1403
@ViCS1403 4 жыл бұрын
So I am trying to install the WebDriverAgentRunner on a real time device which is at OS 14.1. The build gets succeeded in Xcode but when I execute the command xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=' test , the test fails. The error being @t encountered an error (Failed to establish communication with the test runner. Xcode is 11.3, Appium is 1.71,1, phone OS is 14.1
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Veethica, Pls check this can help stackoverflow.com/questions/53643318/xctests-canceling-prematurely github.com/appium/appium/issues/13487
@ViCS1403
@ViCS1403 4 жыл бұрын
@@RaghavPal i did restart my device but still not able to install it
@RaghavPal
@RaghavPal 4 жыл бұрын
I will need to check. Pls keep trying for online help
@sheetalgcin
@sheetalgcin Жыл бұрын
Thanks for another great video on automation. I needed your input, can we use the same tools for tvOS ?
@RaghavPal
@RaghavPal Жыл бұрын
Hi Sheetal I am not sure on this, will need to take online help
@sheetalgcin
@sheetalgcin Жыл бұрын
@@RaghavPal Thank you
@ThaoPhuong-xs3vs
@ThaoPhuong-xs3vs 5 жыл бұрын
Thanks for sharing. I wonder about the apple id. It is paid account or not?. Because i tested with failure
@RaghavPal
@RaghavPal 5 жыл бұрын
Its not paid, as far as I know Thao, I never paid for that. You can check online
@patrycjaa8256
@patrycjaa8256 Жыл бұрын
Do you have video similar like that but with implementation real device (iPhone)?
@RaghavPal
@RaghavPal Жыл бұрын
Hi Patrycja, not on real device iPhone as of now
@patrycjaa8256
@patrycjaa8256 Жыл бұрын
@@RaghavPal will solutions from this video work for real devices also? What you think? 🤔
@RaghavPal
@RaghavPal Жыл бұрын
I have not tried, but I believe it will help
@ravikumarsinha7205
@ravikumarsinha7205 Ай бұрын
Hi sir I m doing automation testing since 5yrs but I have recently started is ios automation but I m getting issues to intract real app/ipa but I m able to automation dummy app do I need to give some extra desired capabilities for real time project
@RaghavPal
@RaghavPal Ай бұрын
Ravi Desired Capabilities for iOS Automation with Appium When automating real iOS apps, make sure to include these desired capabilities: desired_caps = { "platformName": "iOS", "platformVersion": "16.1", "deviceName": "iPhone 11 Pro", "app": "/path/to/your/app.ipa", # Or use bundleId if installed "automationName": "XCUITest", "udid": "", "xcodeOrgId": "", "xcodeSigningId": "iPhone Developer", "bundleId": "" } Common Issues Provisioning Profiles: Ensure your app is signed correctly. Modify the WebDriverAgentRunner's bundle identifier in Xcode if needed. WebDriverAgent Setup: Make sure WebDriverAgent is installed. Remove any existing instance from the device and rebuild it from Xcode if you encounter issues. Connection Issues: Check that the Appium server is running and the device is properly connected. Look for firewall settings that might block connections. Additional Tips Use Appium Inspector: To verify capabilities and inspect UI elements. Check Logs: Review Appium server logs for detailed error messages. Update Appium: Use the latest version for improved features and bug fixes. -
@bngat
@bngat 4 жыл бұрын
Thanks Raghav.. i tried it with mac on virtualbox.. you have explained very clearly each process otherwise a complex process ..
@RaghavPal
@RaghavPal 4 жыл бұрын
You are most welcome
@pravinjadhav9749
@pravinjadhav9749 2 жыл бұрын
Hi raghav. Great explained. Want to know that what if we use appium driver instead of ios driver ? What is best approach ?
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Pravin, this can help stackoverflow.com/questions/35286135/difference-between-appiumdrivermobileelement-and-androiddriver
@debayannandi6507
@debayannandi6507 5 жыл бұрын
Hi Raghav can u plz guide us how to upload any file with the help of appium.it would be really helpful.i tried lot but not able to perform any file upload scenario
@RaghavPal
@RaghavPal 5 жыл бұрын
I will check on that Debayan
@debayannandi6507
@debayannandi6507 5 жыл бұрын
@@RaghavPal thank you
@deepdas1809
@deepdas1809 4 жыл бұрын
Dear Raghav, I am trying to automate iOS application using appium. I have done setting up in Xcode ( Performed clean, build and ran ) for the integration app to my real device and I observed the Integration app is installed into my real iphone 11 ( iOS version : 13.4) and then I checked for WebAgentRunner but it is not installed using xcode and later when I tried to connect to same real device using appium and trying to deploy my real app , I can install using appium but there are some issues which is provided in details log here : uitting and uninstalling WebDriverAgent [XCUITest] Shutting down sub-processes [XCUITest] No WDAs on the device. [XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: Trying to use WebDriverAgent project at '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj' but the file does not exist. Make sure you follow the tutorial at github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. [XCUITest] at quitAndUninstall (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:527:15) [XCUITest] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:557:11 [XCUITest] at wrapped (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:35:13) [XCUITest] at retry (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:18:13) [XCUITest] at retryInterval (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:45:10) [XCUITest] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:537:7 [DevCon Factory] Releasing connections for 00008030-000E0D542E22802E device on any port number [DevCon Factory] Found cached connections to release: ["00008030-000E0D542E22802E:8100"] [DevCon Factory] Releasing the listener for '00008030-000E0D542E22802E:8100' [DevCon Factory] Cached connections count: 0 [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on. [BaseDriver] Event 'newSessionStarted' logged at 1608014823112 (12:17:03 GMT+0530 (India Standard Time)) [MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: Trying to use WebDriverAgent project at '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj' but the file does not exist. Make sure you follow the tutorial at github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. [MJSONWP] at quitAndUninstall (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:527:15) [MJSONWP] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:557:11 [MJSONWP] at wrapped (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:35:13) [MJSONWP] at retry (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:18:13) [MJSONWP] at retryInterval (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:45:10) [MJSONWP] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:537:7 [HTTP] DELETE /wd/hub/session [HTTP] {} [HTTP] No route found. Setting content type to 'text/plain' [HTTP]
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Deep, not very sure on the exact solution, here is a discussion on this github.com/appium/appium/issues/8346
@cthree916
@cthree916 5 жыл бұрын
Thank you for this video! There is a typo in the vid & notes: For Appium Installed through node /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WedDriverAgent WedDriverAgent should be WebDriverAgent
@RaghavPal
@RaghavPal 5 жыл бұрын
Thanks for letting me know Chris
@arwaarasool5426
@arwaarasool5426 2 жыл бұрын
I have this running. But how do I add my own ipa file to this and run it?
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Arwaa, you can upload your file on mobile and get its id discuss.appium.io/t/how-to-install-ipa-file-using-appium-code/11383
@RS-vj6on
@RS-vj6on 9 ай бұрын
Hi Raghav, Our scenario is that we want to run the test from host windows machine and connect to real Mac devices. We were trying with Mac2driver but unable to connect to device. Do you have any video for the same and also if we want to run these tests in pipeline that what kind of host is needed? Please suggest
@RaghavPal
@RaghavPal 9 ай бұрын
RS For the issue with Mac2Driver, it might be due to some configuration or compatibility issues. You can check the official documentation or community forums for potential solutions To run these tests in a pipeline, you would need a Continuous Integration/Continuous Deployment (CI/CD) environment. Jenkins is a popular open-source tool that can be used for this purpose You can also use GitHub Actions for running your tests.. The host machine should have the following basic requirements for the Appium server[^10^]: - A macOS, Linux, or Windows operating system - Node.js version in the SemVer range ^14.17.0 || ^16.13.0 || >=18.0.0 - npm version >=8 ..
@rinkum2987
@rinkum2987 4 жыл бұрын
Helpful videos.. Can we do the same iOS Set up on windows 10?
@RaghavPal
@RaghavPal 4 жыл бұрын
I will plan a session, It will anyways need an iOS agent
@divyadayanandan3479
@divyadayanandan3479 4 жыл бұрын
Hi... Do you have a session to teach Appium Touch action in ios devices
@RaghavPal
@RaghavPal 4 жыл бұрын
Not yet Divya, you will find all existing videos here - automationstepbystep.com/
@abhinandangowda4829
@abhinandangowda4829 5 жыл бұрын
I am in need of appium training . Hence I hope u would help me.
@RaghavPal
@RaghavPal 5 жыл бұрын
I will notify in case I take any batches for appium, you can subscribe to get notified
@abhinandangowda4829
@abhinandangowda4829 5 жыл бұрын
Thanks Raghav , I am very much in need of Appium cources, I am in critical stage of my project. hence I hope u help me. I will also pay for the cources and I am not learner also . Please replay ASAP. my contact no. 9886854333
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Abhinandan, As of now other pre-planned engagements are going on. Request you to get online help for now
@tushar-gokhale
@tushar-gokhale 5 жыл бұрын
Your entire video was very very useful to me, Thank you very much for sharing this video. With the help of this video I managed to solve one blocker issue in setup. Keep it up.
@RaghavPal
@RaghavPal 5 жыл бұрын
So happy to know Tushar
@aniketchavan520
@aniketchavan520 4 жыл бұрын
Hello Raghav, I am following your vedios and those are very easy to understand. Thank u for sharing your knowledge. Raghav I want to connect a real ios device on my Mac for appium framework. So which vedio should I refer. Can you please guide me Thanks in advance
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Aniket, as of now I do not have a video on real iOS device connection with Mac, will plan to do it
@aniketchavan520
@aniketchavan520 4 жыл бұрын
@@RaghavPalokay... Thank you once again for sharing your knowledge.
@Varsha_art_gallary
@Varsha_art_gallary 4 жыл бұрын
Raghav can you please us know. Can we automate published app and enterprise app ?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Sanjeet, you will need the .app or .ipa file. And if you have access and permission for that, can use it
@omarvillanueva5018
@omarvillanueva5018 3 жыл бұрын
is it possible to use iOS device (Actual) on windows machine? So far I only got is the UDID of the iOS phone
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Omar, To test iOS device, I believe you will either need a mac os or a mac agent connected to windows system
@chunhinlam6394
@chunhinlam6394 3 жыл бұрын
if i only have .ipa file, can i do the appium automation test?
@RaghavPal
@RaghavPal 3 жыл бұрын
For the application .ipa file will work and of course you should have all the setup of appium automation framework
@aruvimal85
@aruvimal85 5 жыл бұрын
Raghav, don't we require to set any environment variable path in MAC ?
@RaghavPal
@RaghavPal 5 жыл бұрын
There should be env variables set for JAVA, ANDROID_HOME etc. Pls see this kzbin.info/www/bejne/bXKzlH-oYsh1g5o
@irfanapattan245
@irfanapattan245 3 жыл бұрын
Thanks Raghav this video is very helpful. But i am facing issue with real iOS device testing. Not able to import the distribution certificate. Do you have Any idea or any link?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Irfana, pls check some earlier related comments, You may have to get some online help too
@spidyniks
@spidyniks 5 жыл бұрын
Thanks for such a detailed video. Where do we place the IOS app file? Im very new to this
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Nikhil, you can place at any location. Creating a folder within the project will be helpful, so that you can provide relative path and do not have to change it even when you run from a diff system
@spidyniks
@spidyniks 5 жыл бұрын
@@RaghavPal my simulator opens but the it doesn't switch on at all.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Nikhil, I will not be able to troubleshoot without checking the setup and code. You can try online help
@Dua958
@Dua958 4 жыл бұрын
Hello Raghav. First of all thanks for the tutorial. It is very helpful. You explain very well. However I have a question. When we execute webdriver test, (xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=***' test) it seems to be stuck with 'Using singleton test manager'. It seems many people face it but there is no solution to all the Q in the internet. Do you have Any idea ?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Mona, I am not sure and will have to check practically, you can also check all the user comments in case someone has come to some solution
@ankurvarshney1862
@ankurvarshney1862 4 жыл бұрын
Hey Mona, Did you get any solution. I am also facing same issue. Please share.
@Dua958
@Dua958 4 жыл бұрын
@@ankurvarshney1862 Hello, No i din find any solution but i think there is no impact in using WebDriverAgent. I still have that error but I have successfully created my test framework.
@ankurvarshney1862
@ankurvarshney1862 4 жыл бұрын
@@Dua958 Yes, I am also able to carry out testing. But sometimes facing issues wile locating elements with Appium inspector. App screenshot on Appium inspector doesn't load
@rohitlearning6326
@rohitlearning6326 4 жыл бұрын
How to add dependencies in bash profile . Commands please.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Rohit, I have shown an example in this video. kzbin.info/www/bejne/hITZpZypZ8t6oqM
@lywatanak8594
@lywatanak8594 2 жыл бұрын
Hi Admin, I don't see WebDriverAgent as you shown. I am using Appium Desktop (1.18.3)
@RaghavPal
@RaghavPal 2 жыл бұрын
Will need to check the setup again
@girish1983
@girish1983 3 жыл бұрын
Thank You Raghav by referring your video i have configured AppleTV for Automation :)
@RaghavPal
@RaghavPal 3 жыл бұрын
You are most welcome Girish
@sainiranjan40
@sainiranjan40 4 жыл бұрын
Hi Raghav, Could you please make a video on what kind of SDK for iOS devices can be installed on Windows for iOS mobile Testing ? Thanks
@RaghavPal
@RaghavPal 4 жыл бұрын
I will check and prepare Sai
@sainiranjan40
@sainiranjan40 4 жыл бұрын
@@RaghavPal Thank you :)
@kdkvai
@kdkvai 4 жыл бұрын
Hi Raghav - Build and Run WebDriverAgent Project is an optional step ? If I have ipa file which is provided my Developer. Can I skip this step which explained in xcode. I understood steps but dnt understand why we are doing this ? and what role it plays when i run my scripts from Eclipse. Can you please provide info.
@RaghavPal
@RaghavPal 4 жыл бұрын
Yes you can try Vaibhav
@EnyinnayaChinatu
@EnyinnayaChinatu Жыл бұрын
I'm unable to access the WebDriverAgent on my mac, both installed Appium using npm and the Desktop version however was still unable to locate the WebDriverAgent Directory
@RaghavPal
@RaghavPal Жыл бұрын
Hi Enyinnaya, The WebDriverAgent is a component of Appium that provides a server for running WebDriver tests on iOS devices. If you're unable to locate the WebDriverAgent directory, there are a few steps you can take to resolve this issue: Check if the WebDriverAgent was installed correctly: The WebDriverAgent is typically installed as part of the Appium setup process. If the installation was unsuccessful, you may need to reinstall Appium or the WebDriverAgent. Check your Appium version: The location of the WebDriverAgent directory may be different depending on the version of Appium you're using. Make sure you're using the latest version of Appium and check the documentation for information on the location of the WebDriverAgent directory. Check the Appium logs: If the WebDriverAgent is not starting or is not working as expected, you can check the Appium logs for information on the issue. The logs may contain information that can help you diagnose and resolve the problem. Check the Xcode version: The WebDriverAgent is built using Xcode, so you will need to have a compatible version of Xcode installed on your Mac. Make sure you have the latest version of Xcode installed and check the Appium documentation for information on the minimum required version. Rebuild the WebDriverAgent: If the WebDriverAgent is not working as expected, you can try rebuilding it using the following command: ./Scripts/bootstrap.sh This command will rebuild the WebDriverAgent and may resolve any issues you're encountering. Note: These steps should help you resolve most issues related to the WebDriverAgent. If you continue to experience problems, you may want to check the Appium forums or ask for help on Stack Overflow for additional assistance.
@jayabose490
@jayabose490 5 жыл бұрын
Hi. I have done the real device setup for iOS devices automation. While clicking on build it is able to install webdriveragent in iphone 6s and iphone x but though the build gets succeed for iPad but it doesn't install webdriveragent
@jayabose490
@jayabose490 5 жыл бұрын
It would be great if u can help in this regard. Another problem is some phones got updated to 12.2 or more ios versions and that is now not working with xcode 10.13.6.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Java, I will check and try to put a video soon on this
@jayabose490
@jayabose490 5 жыл бұрын
Thanks Raghav .waiting for your upcoming video
@ArpitSharma3107
@ArpitSharma3107 5 жыл бұрын
Thank you for explaining so nicely. I am not able to execute it till the final step. I performed all the steps available in the video, I used iOS in place of Android. I got exception while running the test. Below is the log, please check and suggest, thank you. [RemoteTestNG] detected TestNG version 7.0.0 org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Command 'idevice_id -l' errored out: Error: spawn idevice_id ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:262:19) at onErrorNT (internal/child_process.js:464:16) at processTicksAndRejections (internal/process/task_queues.js:80:21) Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'Arpits-MBP.hsd1.ca.comcast.net', ip: '2601:646:8084:5160:0:0:0:24c4%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.1', java.version: '1.8.0_232' Driver info: driver.version: IOSDriver remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Command 'idevice_id -l' errored out: Error: spawn idevice_id ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:262:19) at onErrorNT (internal/child_process.js:464:16) at processTicksAndRejections (internal/process/task_queues.js:80:21) at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:826:9) at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:447:37) Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'Arpits-MBP.hsd1.ca.comcast.net', ip: '2601:646:8084:5160:0:0:0:24c4%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.1', java.version: '1.8.0_232' Driver info: driver.version: IOSDriver at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208) at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217) at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:41) at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1) at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213) at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:336) at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131) at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:37) at io.appium.java_client.AppiumDriver.(AppiumDriver.java:88) at io.appium.java_client.AppiumDriver.(AppiumDriver.java:98) at io.appium.java_client.ios.IOSDriver.(IOSDriver.java:90) at tests.BaseClass.setup(BaseClass.java:33) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133) at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:62) at org.testng.internal.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:340) at org.testng.internal.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:294) at org.testng.TestRunner.invokeTestConfigurations(TestRunner.java:623) at org.testng.TestRunner.beforeRun(TestRunner.java:613) at org.testng.TestRunner.run(TestRunner.java:584) at org.testng.SuiteRunner.runTest(SuiteRunner.java:402) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:396) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:355) at org.testng.SuiteRunner.run(SuiteRunner.java:304) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1180) at org.testng.TestNG.runSuitesLocally(TestNG.java:1102) at org.testng.TestNG.runSuites(TestNG.java:1032) at org.testng.TestNG.run(TestNG.java:1000) at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186) ... 38 more Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Command 'idevice_id -l' errored out: Error: spawn idevice_id ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:262:19) at onErrorNT (internal/child_process.js:464:16) at processTicksAndRejections (internal/process/task_queues.js:80:21) Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'Arpits-MBP.hsd1.ca.comcast.net', ip: '2601:646:8084:5160:0:0:0:24c4%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.1', java.version: '1.8.0_232' Driver info: driver.version: IOSDriver remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Command 'idevice_id -l' errored out: Error: spawn idevice_id ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:262:19) at onErrorNT (internal/child_process.js:464:16) at processTicksAndRejections (internal/process/task_queues.js:80:21) at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:826:9) at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:447:37) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62) at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30) at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958) at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126) at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:531) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128) ... 43 more In side Test Now - Arpit's iPhone 8 13.1.2 PASSED: test =============================================== Default test Tests run: 1, Failures: 0, Skips: 0 =============================================== =============================================== Default suite Total tests run: 1, Passes: 1, Failures: 0, Skips: 0 ===============================================
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Arpit, do you have libimobiledevice installed. Try brew install libimobiledevice I have seen some solutions options here. Pls check github.com/appium/appium/issues/8031 github.com/appium/appium/issues/7096 One of the users stated - "Remove the udid capability resolves the issue"
@sricharan9283
@sricharan9283 3 жыл бұрын
Hi Raghav, Thank you so much for this training series. Can you also tell me how to connect IOS mobile from Windows laptop ?
@RaghavPal
@RaghavPal 3 жыл бұрын
From windows, you will need some mac agent
@sricharan9283
@sricharan9283 3 жыл бұрын
@@RaghavPal Thank you, any specific agent you have used in your projects?
@RaghavPal
@RaghavPal 3 жыл бұрын
For iOS I used my mac system itself. Basically you need xcode with is present on mac and not on windows
@joyanupam1983
@joyanupam1983 Жыл бұрын
Hi Ragav, can you please let me know if there is any way to automate iOS apps using Appium on windows machine, and not in Mac ?
@RaghavPal
@RaghavPal Жыл бұрын
Unfortunately, it is not possible to automate iOS apps using Appium on a Windows machine without a Mac. Appium relies on Apple's XCUITest framework, which is only available on macOS. XCUITest is the automation framework used for testing iOS apps. To automate iOS apps using Appium, you need a macOS machine or a Mac cloud service where you can set up Appium and run your tests. This is because Appium requires access to the iOS simulator or physical devices, which are only available on macOS. However, once you have a macOS machine or access to a Mac cloud service, you can use Appium with the appropriate configurations and capabilities to automate iOS app testing efficiently. In summary, to automate iOS apps using Appium, you need a macOS machine or access to a Mac cloud service. Windows machines alone cannot run Appium for iOS app automation.
@friendonymous
@friendonymous 2 жыл бұрын
Hi Raghav, are the steps same for working with chrome browser on iOS device?
@RaghavPal
@RaghavPal 2 жыл бұрын
should work on that too Aditya, pls try and check
@SouravKumar-um7pr
@SouravKumar-um7pr 2 жыл бұрын
Installed appium through node , cant find WebDriverAgent folder in the xcuite folder location
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Sourav, run this command npm ls -g appium-webdriver check this github.com/appium/appium/issues/13297
@harshgorana7110
@harshgorana7110 5 ай бұрын
Hi raghav please help me out for set up for appium for iOS app from selenium with desired capabilities I am getting too much error
@RaghavPal
@RaghavPal 5 ай бұрын
Harsh Let's break it down step by step. Step 1: Install Appium Make sure you have Appium installed on your system. You can download and install Appium from the official website: Step 2: Install Selenium You mentioned you're using Selenium, so I assume you already have it installed. If not, you can install Selenium using pip: ``` pip install selenium ``` Step 3: Set up Appium Server Start the Appium server by running the following command in your terminal/command prompt: ``` appium ``` This will start the Appium server, and you should see a message indicating that the server is listening on a specific port (e.g., `0.0.0.0:4723/wd/hub`). Step 4: Prepare your iOS App Make sure you have an `.ipa` file for your iOS app. If you don't have one, you can create it using Xcode or other tools. Step 5: Set up Desired Capabilities Create a dictionary to store the desired capabilities for your iOS app. Here's an example: ```python desired_caps = { 'platformName': 'iOS', 'platformVersion': '14.2', # Replace with your device's iOS version 'deviceName': 'iPhone 12', # Replace with your device's name 'automationName': 'XCUITest', 'app': '/path/to/your/app.ipa', # Replace with the path to your.ipa file 'noReset': True, 'fullReset': False } ``` Step 6: Create an Appium Driver Instance Create an instance of the Appium driver using the desired capabilities: ```python from selenium import webdriver driver = webdriver.Remote(command_executor='localhost:4723/wd/hub', desired_capabilities=desired_caps) ``` Step 7: Verify the Connection Try to connect to the Appium server using the driver instance: ```python driver.get('www.google.com') ``` If everything is set up correctly, you should see the Appium server launch the iOS simulator and open the Google website --
@abhinandangowda4829
@abhinandangowda4829 5 жыл бұрын
Hello Raghav , can I get appium set up for real iOS devices?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Abhinandan, I have given some tips in the video description. Will do a separate video soon.
@pcloudy
@pcloudy 5 жыл бұрын
yes, please have a look this video - kzbin.info/www/bejne/oqOkZ62PntB5d5Y
@rahulbendale5969
@rahulbendale5969 2 жыл бұрын
Hi Raghav, I have a few doubts related to mobile automation, Could you please respond if possible, 1. I have a Windows machine and Can I automate iOS apps from Windows machines. 2. Is it possible using an emulator? 3. Can I automate OS independent code? Means If I do the automation on Windows then Can i run it on MacBook? and vice versa.
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Rahul, 1. If you want to use a real, local device, then No, you will need a Mac OS for iOS testing, But if you can use remote platforms and infrastructure, then can be done from Windows 2. Yes you can 3. You can, will need to add some conditional statements are few places based on os
@xamapatel1508
@xamapatel1508 2 жыл бұрын
Hi Ragav I am trying to set up automation for iOS mobile native app and following your tutorial but I am confuse when to use appium vs appium studio and also having issue setting up webdriveragent. Any suggestions? By the way your videos are very helpful Thank you for that.
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Xama, Appium Studio helps to do some basic setup, that you will have to do in case of Appium. I have a session on Appium Studio, can watch that
@vijaykharage
@vijaykharage 5 жыл бұрын
A neat explanation for the beginners. Thanks for this series. Helped a lot.
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Vijay
@luizfelipesilva5558
@luizfelipesilva5558 2 жыл бұрын
Hello Ragav, ios deploy -c doesn't list devices, has it been removed for ios 15.4?
@RaghavPal
@RaghavPal 2 жыл бұрын
Not sure Luiz, will need to check the documentation
@all_in_one1060
@all_in_one1060 3 жыл бұрын
In Appium 1.21.0, you don’t need to run sh ./Scripts/bootstrap.sh. ..is it true???
@RaghavPal
@RaghavPal 3 жыл бұрын
I will need to check on that
@cbt121314
@cbt121314 3 жыл бұрын
It is true
@awaiskhalil1435
@awaiskhalil1435 2 жыл бұрын
I found XcuiDriver agent using this command "/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent" may be path is little changed during time
@RaghavPal
@RaghavPal 2 жыл бұрын
May be, glad to know it worked
@Leonardo-gd2iz
@Leonardo-gd2iz 2 жыл бұрын
Thanks!!! In xCode 13.2.1, this command does not work "instruments -s devices", so I just took the desired device ID in xCode and inserted it into "xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=444441111-2222-1111-1111-B5555ADE3333' test". An important point is that I previously moved to the folder with the WebDriverAgent file.xcodeproj use "cd /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/"
@RaghavPal
@RaghavPal 2 жыл бұрын
Thanks for adding Leonardo
@anchalsoni911
@anchalsoni911 Жыл бұрын
Hi Raghav, I was trying to set up xcode the way you have shown in the video, but it shows build failed whenever I am trying to perform buid. I have searched on google but couldn't find any solution which can resolve this issue. Can you please help in that.
@RaghavPal
@RaghavPal Жыл бұрын
Hi Anchal, It sounds like you are encountering an issue with building your Xcode project when using Appium on a MacOS machine. There could be a few reasons why this is happening: Try cleaning your build folder and delete derived data Try to re-install Appium, if the issue still persist You can also try to check your system logs, sometimes there may be some issue with permissions If you still facing the same issue, you can try to update your xcode to the latest version, it might help.
@vancexavier8339
@vancexavier8339 4 жыл бұрын
OMG I don't have Mac machine to run Appium! Are there any alternatives? I only have Win 10 machine but I want to do automation testing on iOS devices!
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Vance, you will need either a mac machine or some agent. The next option is to use some cloud services provider like browserstack, saucelabs etc
@vancexavier8339
@vancexavier8339 4 жыл бұрын
@@RaghavPal What about a MacOS virtual machine on Windows?
@RaghavPal
@RaghavPal 4 жыл бұрын
will need some os agent for that
@vancexavier8339
@vancexavier8339 4 жыл бұрын
@@RaghavPal what's that? I thought it was just simply installing macOS 10 onto the virtual machine?
@redchilli450
@redchilli450 2 жыл бұрын
Looks like the WebDriveragent folder doesnt exist in 2022 ( at least not in that path), does anybody know if its been moved or if there is an extra step now to get it? Thanks
@RaghavPal
@RaghavPal 2 жыл бұрын
I will check, meanwhile can refer new online resources
@dodo9695
@dodo9695 3 жыл бұрын
Sir, Do we need to download webdriver file separately ?
@RaghavPal
@RaghavPal 3 жыл бұрын
if you mean webdriver agent, not required, just follow the steps
@dodo9695
@dodo9695 3 жыл бұрын
@@RaghavPal okay Thank you sir.
@jayabose490
@jayabose490 5 жыл бұрын
Hey Raghav, is it like we need to register our device udid somewhere linked to our apple id? Is paid apple profile is required for profiling purpose or we can use free apple profiles too?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Jaya, you should be able to use the free apple id. On device, you just need to trust connection and have uiautomation enabled. pls check appium.io/docs/en/drivers/ios-xcuitest-real-devices/
@cthree916
@cthree916 5 жыл бұрын
​@@RaghavPal it says to go to "Settings => General => Device Management " on the device, but there is no 'Device Management' under Settings-General. Please advise.
@cthree916
@cthree916 5 жыл бұрын
@@RaghavPal I got it working by following steps here: stackoverflow.com/questions/39603667/failed-to-create-provisioning-profile Specifically, after connecting my phone, selecting it from XCode menu Project -> Destination -> (selected my device)
@praveenkumargoudpuppala9294
@praveenkumargoudpuppala9294 4 жыл бұрын
Thanks a lot for creating this video. It really helped me to get onboard to appium quickly.
@RaghavPal
@RaghavPal 4 жыл бұрын
So happy to know this Praveen
@haydenbdennis5274
@haydenbdennis5274 4 жыл бұрын
Thank you so much! your series has on Appium has been so helpful in my slow progression with learning test automation. 😄👍🏾
@RaghavPal
@RaghavPal 4 жыл бұрын
You're welcome Hayden
@confusingmaverick892
@confusingmaverick892 3 жыл бұрын
Raghav .. Thanks for the info.. do we need to have admin/root access in Mac to setup appium for iOS devices?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi, you should be do the setup for your user even if you are not admin. Can check more online on this
@confusingmaverick892
@confusingmaverick892 3 жыл бұрын
@@RaghavPal that's a great news.. I am new to Mac.. will try.. kindly share any link to overcome the need for admin access... Thanks for all the info and for your selfless service in tutoring...
@RaghavPal
@RaghavPal 3 жыл бұрын
Sure, I will plan on this
@Hashira_95
@Hashira_95 3 жыл бұрын
Hello Friend! Your lectures are great! I have a question, is it possible to perform automatic tests using Appium, for the iOS native application after watching all your lectures, without prior knowledge of programming languages ​​and testing tools? I saw that it is possible for Appium to "remember" the steps that the tester goes through himself?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Dragan, yes, you can do automation testing on iOS native apps
@Hashira_95
@Hashira_95 3 жыл бұрын
@@RaghavPal without prior programming knowledge?
@RaghavPal
@RaghavPal 3 жыл бұрын
Yes, as long as you are ready to learn new things
@Hashira_95
@Hashira_95 3 жыл бұрын
@@RaghavPal Right, of course. Thank you man, and thank you for the knowledge sharing!
@ConradBraam
@ConradBraam 2 жыл бұрын
Such a pity people don't do good documentation like this more of the time. You don't mention appium-doctor? I believe it helps with carthage and webdriveragent source installation issues.
@RaghavPal
@RaghavPal 2 жыл бұрын
Sure Conrad
@KashifKhan-yt2cg
@KashifKhan-yt2cg 2 жыл бұрын
Thank you for this explanation!
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Kashif
@rbsolveda6007
@rbsolveda6007 2 жыл бұрын
Is there any way we can do this in a windows machine ?
@RaghavPal
@RaghavPal 2 жыл бұрын
Not directly on a windows system, you can use cloud devices platform like Browserstack, Saucelabs etc
@priyankathorat992
@priyankathorat992 3 жыл бұрын
Hello Sir, Getting error 'no such file or directory' while running the script './Scripts/bootstrap.sh'. Can you suggest any solution for this?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Priyanka, Try to reinstall carthage with brew brew uninstall carthage brew install carthage
@testingtrail
@testingtrail 4 жыл бұрын
Thanks Raghav, this is very detailed. I wonder, have you found any easy way to do this set up, seems like a lot of steps just to have Appium linked with the device. Thanks again!
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Jorge, yes, with mac setup there is a bit longer process, As of now I believe this is the way, In case I get any updates will update in video description
@pernaturel
@pernaturel 4 жыл бұрын
Is running the WebDriverAgent project in xcode relevant to ios appium java testing? I mean is it needed? whats the importance of it?
@RaghavPal
@RaghavPal 4 жыл бұрын
XCode provides the capabilities to connect, profile and debug with iOS devices
@ajeetsingh6105
@ajeetsingh6105 3 жыл бұрын
Hi Raghav, Thanks for creating very easy and helpful tutorial. I followed the video and I am able to setup with IOS real Device but now my iPad version updated so from 14.4 to 14.6 because of update I am getting unsupported OS version. Could you please help me out what could be the root to fix the issue . Thanks in advance.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Ajeet, I will need to check on this, Try some online help too
@ajeetsingh6105
@ajeetsingh6105 3 жыл бұрын
@@RaghavPal Hi Raghav, I tried to get help from online or some other sites but didn't get any proper solution.
@RaghavPal
@RaghavPal 3 жыл бұрын
I will check more
@AbdulkadirAbdukerim
@AbdulkadirAbdukerim Жыл бұрын
Hi Ragav, my xcode build succussed , device could turn on, I wrote code like your, but I still get /wd/hub/session 500 error when I run my code, also I can see something like "No WDAs on the device." please help me!
@RaghavPal
@RaghavPal Жыл бұрын
Hi, The error (/wd/hub/session 500 error) indicates that there is an issue with the WebDriver session Can be due to: 1. Incorrect configuration of the Appium server or WebDriverAgent: Make sure that your Appium server is configured correctly, and that the Appium WebDriverAgent is installed and running on the device 2. iOS version incompatibility: Appium's WebDriverAgent is updated to support the latest version of iOS. make sure you are using the version of the WebDriverAgent that is compatible with the version of iOS running on your device 3. Incorrect WebDriverAgent setup: if the WebDriverAgent is not correctly configured, or its dependencies are missing, it will not be able to communicate with the device and you will receive this error. You may want to check the WebDriverAgent logs and see if there is any information there that can help you troubleshoot the issue 4. Insufficient permission: The WebDriverAgent may not have the necessary permissions to run on the device. You can check the system logs on the device to see if there are any error messages related to permissions You may want to try reinstalling the WebDriverAgent on the device and reconfiguring the Appium server to see if that resolves the issue If the issue persists, you can try adding the -d option when starting the appium server. This will print the debug logs to the console, and you may find useful information to troubleshoot the issue
@channel92er
@channel92er 5 жыл бұрын
Hi, File .IPA support real devices IOS ? When i run script on real devices , app was open but it still and not work next step ? Where did I get it wrong? Thanks
@RaghavPal
@RaghavPal 5 жыл бұрын
Any logs
@channel92er
@channel92er 5 жыл бұрын
I solved the problem in WDA, Thanks@@RaghavPal
@kuldeepchaple1623
@kuldeepchaple1623 2 жыл бұрын
I followed your mention steps but I am facing below issue - Error getting screenshot: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up. Can you please help me to resolve this issue. please
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Kuldeep, try restarting both my Android emulator or connecting device again and also Appium server.
@MrKavoo
@MrKavoo 3 жыл бұрын
Hello, I have an automation script set up and running with the above set up. Any idea how I can integrate the script in a pipeline, the catch being that the app I'm testing requires hardware sim card dependability. Thanks in advance
@RaghavPal
@RaghavPal 3 жыл бұрын
Try some CI CD tool like Jenkins, Can get all tutorials here - automationstepbystep.com/
@ZulfiqarAli-sp3nm
@ZulfiqarAli-sp3nm 4 жыл бұрын
Hello Raghav Can we automate iOS ipa with Appium in the Windows operating system using Simulator Or any other way to run ipa using window without having MAC devices...?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Zulfiqar, you will need to have some iOS agent. You can check Appium Studio or TestProject for this
@smg_001
@smg_001 3 жыл бұрын
Good Explanation. Thank you 👍👍
@RaghavPal
@RaghavPal 3 жыл бұрын
Most welcome
@heikofikenzer9333
@heikofikenzer9333 5 жыл бұрын
Thank you for that tutorial. What I search for is testing both devices Iphone (iOS) and Samsung (Android) with appium and VisualStudioCode on a Windows 10 Operationg System. Could you help me.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Heiko, on VS Code I am yet to work with appium. I will take our time for this, but for now pls take online help
@SaifulIslam-sn2ys
@SaifulIslam-sn2ys 5 жыл бұрын
Hi Boss , How to automate REACT app on Android by appium with Java ?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Saiful, I have not yet tested it, here are some pointers to get you started bitbar.com/blog/testing-react-native-apps-on-android-and-ios/ www.headspin.io/blog/testing-react-native-apps-with-appium
@satishtripathi239
@satishtripathi239 3 жыл бұрын
@Raghav , i cant find bootstrap.sh inside the appium-webdriveragent /Resource ,
@RaghavPal
@RaghavPal 3 жыл бұрын
Try to reinstall carthage with brew brew uninstall carthage brew install carthage
@1sargop
@1sargop 5 жыл бұрын
Hi Raghav , thank you for this video. I am not able to sign-in with a profile, but my Xcode build is successful and launches IntegrationApp to simulator. Also, when I run my test automation, I am getting the following error- Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: Command 'Scripts/bootstrap.sh -d' exited with code 1
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi, pls see the options here - github.com/facebookarchive/WebDriverAgent/issues/840
@okey1317
@okey1317 3 жыл бұрын
Hi, is xode required, if i m using real devide? Xcode is just to create simulator right?
@RaghavPal
@RaghavPal 3 жыл бұрын
for iOS, xcode will be required
@okey1317
@okey1317 3 жыл бұрын
@@RaghavPal why?
@RaghavPal
@RaghavPal 3 жыл бұрын
Its as per the design
@RajashreeBilgundi
@RajashreeBilgundi 2 жыл бұрын
I am getting some warnings due to which I am unable to install .ipa file from xcode
@RaghavPal
@RaghavPal 2 жыл бұрын
will need to check the details, Pls check online
@vjayanand1
@vjayanand1 4 жыл бұрын
Hi Raghav, I couldnt find WedDriverAgent folder in this location -> /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WedDriverAgent. Am I missing something here. pl advice.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi VJ, not sure if something has changed in xcode. Will need to check latest docs
@vjayanand1
@vjayanand1 4 жыл бұрын
@@RaghavPal Pl check and let me know
@junaidqureshi3577
@junaidqureshi3577 2 жыл бұрын
Hello Sir, How I can use appium studio in ubuntu
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Junaid, this can help www.qaautomation.co.in/2019/07/download-and-install-appium-for-ubuntu.html
@niranjankulkarni5423
@niranjankulkarni5423 4 жыл бұрын
Hi, is it necessary if to do setup for WebDriverAgent if I'm using Robot Framework for Automation. Do anyone have link to the setup required for "Appium+iOS App+Robot Framework"Automation ?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Niranjan, you will need to the the iOS setup irrespective of the platform or framework you are using
@DidierAriasduque
@DidierAriasduque 3 жыл бұрын
Hi, Raghav. How do I see device information? { "deviceName": "??", "automationName": "??" } I tried with "adb devices" but I don't get the device name. Thanks for the video
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Didier, pls check if this helps: 1. Unlock mobile device 2. Open CMD 3. Run command : adb devices 4. Run command : adb shell 5. On mobile store open the app that you want to check 6. Run command : dumpsys window windows | grep -E ‘mCurrentFocus’ 7. appPackage and appActivity name will get displayed. Copy from here www.automationtestinghub.com/apppackage-and-appactivity-name/
@RyanTr
@RyanTr 5 жыл бұрын
Thanks for this vey useful video Raghav Pal. Keep up the good work..!!
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Nipun
@hizkia3590
@hizkia3590 4 жыл бұрын
I don't hv apple dev id, can I use the free apple id for setup on xcode?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Hizkia, if you need to do automation on physical iOS device, then you will need apple id and as far as I know it is not free
@MrVinodKumar9195
@MrVinodKumar9195 4 жыл бұрын
want to validate any text in the mobile application. I am not able to use "Assert.asertEqual" something action for mobile text in (appium+Maven+Java) Project .
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Vinod, you will have to get the text from the browser first. You car search more on "Appium How to get text from element"
@MrVinodKumar9195
@MrVinodKumar9195 4 жыл бұрын
@@RaghavPal actually last time i am working with wesites so in this website, when i have to validate the any text then first create e string of these text then comapre under assert.assertequat(expected, actual) somthing
@MrVinodKumar9195
@MrVinodKumar9195 4 жыл бұрын
@@RaghavPal i am tring same as mobile appium testing then its given erro while wrote e assert command in script. Kindly suggest me stable assertion library for this action
@RaghavPal
@RaghavPal 4 жыл бұрын
will need to check more online. will inform if I get some better solution
@vidushimishra5526
@vidushimishra5526 4 жыл бұрын
Hi raghav When i open the webdriver agent project in xcode , and setting automating signin for Webdriver agent runner I am getting an issue ```There are no devices registered in your account on the developer website. Plug in and select a device to have Xcode register it.``` And one more Xcode couldn't find any iOS App Development provisioning profiles matching 'com.vidushi.WebDriverAgentRunner'.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, check if this helps stackoverflow.com/questions/45204842/xcode-8-asks-for-a-device-to-be-registered-to-create-provisioning-profile github.com/Provenance-Emu/Provenance/issues/596
@backbenchtech1846
@backbenchtech1846 4 жыл бұрын
Hi Raghav, I have been facing issues for connecting to the real iPad.the integration app is able to install and run in the real iPad but when I try my .ipa file in the iPad it does install and shows the below errors I have been able to successfully setup in 1 Mac with the same errors I have been facing error : 1)web driver agent not found and xcode exited with code 45 2) appium ends with a code 500 Troubleshooting I have tried: 1)reinstall appium 1.16.1 2)and perform the ./scripts/botstrap command in the both web driver agent folder(for the latest version it has 2 we driver agent folder one in node modules other in xcuitest node modules) 3)changes in the xcode signing capabilities and bundles
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Rahul, have you run appium-doctor to check if there is anything missing or not proper. I will have to explore more online for real device testing
@backbenchtech1846
@backbenchtech1846 4 жыл бұрын
I have run the appium doctor every thing is fine Can you suggest me any forums or video that helps with the troubleshooting this problem
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Rahul, as of now No specific forum. Will let you know If I find something.
@PankajKumarShee
@PankajKumarShee 5 жыл бұрын
Why not you show step 9 for Appium for Desktop and I am getting the error as "Failed to create provisioning profile" after changing the product bundle identifier as per your instruction. I opened the WebDriverAgent.xcodeprej from appium desktop folder. Can you tell me the solution?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Pankaj, Go to WebDriverAgentRunner -> Build Settings -> Build Settings -> Packaging -> Product Bundle Identifier and change it. After changing clear the project and rebuild it. stackoverflow.com/questions/40484957/appium-error-xcode-couldnt-find-a-provisioning-profile-matching-com-facebook-w github.com/appium/appium/issues/8144
@kamakshikhosla9805
@kamakshikhosla9805 4 жыл бұрын
hi, raghav..thanks for the great session but i am facing issue while launching application on real device,application gets installed but then it does not launch and finally it uninstalls with this error-"xcodebuild exited with code '65' and signal 'null'" also in tutorial, integration app gets installed in simulator but while attempting on real device, it throws error that development account is required..waiting for your reply..please guide!
@kamakshikhosla9805
@kamakshikhosla9805 4 жыл бұрын
No profiles for 'com.schracks.WebDriverAgentRunner.xctrunner' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.teamtech123.WebDriverAgentRunner.xctrunner'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. Testing cancelled because the build failed. running this command xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=f75xxxxxxx' test
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, this is what I found online, Ensure you have the webdriveragentrunner and all other associated file with it (WebDriverAgentLib , WebDriverAgentUSBClient and Unittest , IntegrationTests and IntegrationApp) all use the correct developer signed . This is Under General->team. When i say developer signed the developer.apple.com/account -user should be able to login and get it signed from there and u are using the same signed account
@kamakshikhosla9805
@kamakshikhosla9805 4 жыл бұрын
@@RaghavPal hi Raghav, thanks for the reply, I am using developer account but it's expired, so it's mere apple id for real device..will that work?..also, shall I use xcodebuild command on terminal to install webdriveeagent application on my device? Bcz it says no webdriveeagent app found
@RaghavPal
@RaghavPal 4 жыл бұрын
I think you will need the dev account now. I will update if I get more info
@aravindkumar1495
@aravindkumar1495 5 жыл бұрын
if dev team give whatsapp.app file (for example) then we need to copy to webdriveragent project under product folder ...?? if yes then how to do it sir its very imp please reply or make videos sir
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Aravind, I will check and try to create a session. For now pls get some online help
@sainiranjan40
@sainiranjan40 4 жыл бұрын
Hi Raghav, I followed every step and my build failed on Terminal, with below error, Please help! [I am running on actual device - iPad] Failing tests: WebDriverAgentRunner: -[UITestingUITests testRunner] I went to Window > Devices and Simulators > Under ERRORS AND WARNINGS, it dispalys Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Sai, was the device locked during execution, Also check if USB debugging is one. You can also check online for your specific device ver, in case any extra settings are required
@nekkantisandeepkumar8897
@nekkantisandeepkumar8897 4 жыл бұрын
Hi I tried changing the bundle identifier but still i am facing issue "failed to register bundle identifier" and after multiple attempts I got this message "Your maximum App ID limit has been reached. You may create up to 10 App IDs every 7 days". Any alternative please.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Nekkanti, this is as per the new limits, you may have to get an apple dev account. Check here for more - stackoverflow.com/questions/36922738/how-to-get-around-apple-app-id-insanity
@marchalimmatta3081
@marchalimmatta3081 4 жыл бұрын
Hello. Was the issue resolved? and do we need to register as a developer account?
@alekseypip
@alekseypip 4 жыл бұрын
Hello how i can find this video "How to setup android on Mac OS"?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Pak, can find all here - automationstepbystep.com/
@sathishs3789
@sathishs3789 5 жыл бұрын
Hi Raghav , Can we do this ios app automation in windows 7 system. if yes , how ?
@RaghavPal
@RaghavPal 5 жыл бұрын
You can but will have to use some 3rd party platform like TestProject - testproject.io/
@yeltsin1024
@yeltsin1024 5 жыл бұрын
while running this command ./Scripts/bootstrap.sh -d its displays as -bash: ./scripts/bootstrap.sh: No such file or directory. Please help me to resolve this.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Yeltsin, Try to reinstall carthage with brew brew uninstall carthage brew install carthage
@kedardegaonkar
@kedardegaonkar 4 жыл бұрын
Hi Raghav. Need help please. Getting error as ------------------- Building scheme "iOS Framework" in CocoaAsyncSocket.xcodeproj. Build Failed. Task failed with exit code 1 ........ after running ./Scripts/bootstrap.sh -d command on Terminal XCode Command Line Tools & Carthage is already installed. Mac OS: Catalina XCode: 12 Appium: 1.12.1
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Kedar, pls check this - github.com/appium/appium/issues/14703
Appium Beginner Tutorial 16 | How to create iOS automation testing project in java
20:02
1 | Appium Step by Step | Basic Setup on Windows and Mac OS
35:26
Automation Step by Step
Рет қаралды 32 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
I Made an iOS App in MINUTES with This AI Tool!
13:20
Creator Magic
Рет қаралды 480 М.
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
Webdriveragent app setup in iPhone/Simulator
13:29
Ramesh Babu
Рет қаралды 9 М.
2,000 People Fight For $5,000,000
24:45
MrBeast
Рет қаралды 77 МЛН
Hackers Who Get Paid to Hack Companies | Short Documentary
15:39
Set up a Mac in 2024 for Power Users and Developers
1:00:34
Syntax
Рет қаралды 377 М.
Xcode 16 App Development: Beginner Friendly Tutorial
37:00
Setup appium for iOS Real Device and Simulator
17:20
Appium Explained
Рет қаралды 26 М.
Appium Automation Framework from scratch | Java | Maven | TestNG
47:43
Automation Step by Step
Рет қаралды 231 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН