I feel myself lucky because of finding your channel, when I search on youtube. I m planning to watch all your videos. Thank you for your clear explanation and your effort.
@RaghavPal
3 жыл бұрын
Most welcome
@buinathtine
4 жыл бұрын
For who is stuck after run with test one, you should update a little bit because we are finding element of selenium webdriver instead android app: AppiumDriver driver; => Update to: WebDriver driver; driver = new AppiumDriver(url, caps); => Update to: driver = new RemoteWebDriver(url, caps);
@RaghavPal
4 жыл бұрын
Thanks for this information Tiến
@FayyazeEbrahim
4 жыл бұрын
Thanks Bro! You saved my day
@appansingharoy491
4 жыл бұрын
Thanks much for the info !!
@bngat
3 жыл бұрын
Thanks Tien... one more way it worked for me was use of direct xpath instead of name locator... "findElement(By.xpath("//input[@name='q']"))" it ran successfully..
@ankushtagalpallewar6652
2 жыл бұрын
What if we want to run with ? Because with iOS accessibility id RemoteWebDriver is not working.
@seaglass1449
4 жыл бұрын
Thank you! Your tutorials are the best of the best! I had no prior experience and i was able to install and run scrips from scratch in three days following your tutorial , Your install instructions has 100% accuracy. Here now trying some scripts.
@RaghavPal
4 жыл бұрын
You're welcome. Best wishes
@foodSpot1627
Жыл бұрын
@@RaghavPalhey raghav can we test the font size and its family for instagram app? Using appium inspector?
@hansitadash7497
3 жыл бұрын
This is the best video i have seen till date. Very useful. The steps are very clear and explained so well. Cannot thank you much.
@RaghavPal
3 жыл бұрын
You are most welcome Hansita. humbled
@vimalaangelus9503
3 жыл бұрын
Thank you Raghav .Your approach to teaching is systematic ,clear and awesome .I have learnt slenium using your videos
@RaghavPal
3 жыл бұрын
So glad to hear that Trellis
@akbarchandani5365
4 жыл бұрын
Below is the solution worked for me for exception/error "No Chromedriver found" Start appium server through command line using below command: appium --allow-insecure chromedriver_autodownload The above command will install the latest driver as per the chrome browser version on running the above test as expected.
@RaghavPal
4 жыл бұрын
Thanks for the inforamation Akbar
@FayyazeEbrahim
4 жыл бұрын
Thanks Bro!
@amalkrishnats8352
4 жыл бұрын
Thank you so much !
@SenthilKumardevaraj
4 жыл бұрын
Thanks Akbar !
@priyankapatil7484
4 жыл бұрын
Where we have to put this Command??
@SurendraSingh-tp2vz
5 жыл бұрын
Thanks Raghav for explaining it so well in super easy steps..Kudos!
@RaghavPal
5 жыл бұрын
You're welcome Surendra
@chandrachalla3466
3 жыл бұрын
This is pretty awesome video. Excellent work Raghav on explaining details- great work. Thank you !!!!
@RaghavPal
2 жыл бұрын
most welcome Chandra
@selamgebretinsaye26
4 жыл бұрын
the best, simple, very straight forward, easy to understand tutorial! Thank you Sir!
@RaghavPal
4 жыл бұрын
Most welcome Seliti
@lakshmiy4103
3 жыл бұрын
Amazing explanation, made the concept so easy and clear - framework from scratch. Thanks a lot for making this video. Keep making the videos and help passionate learners to reach their goals. Waiting for the Android and IOS framework videos.
@RaghavPal
3 жыл бұрын
Glad it helped Lakshmi
@HimadriSengupta
4 жыл бұрын
Thank you Raghav ! I am a Subscriber and will request for more Videos on Appium Frame work specially on Pages of POM.
@RaghavPal
4 жыл бұрын
I will do Himadri
@jackvicky2173
2 жыл бұрын
Amazing tutorial very well explained!!! Thank you so much for the video!!
@RaghavPal
2 жыл бұрын
Most welcome Jack
@sindhoorsmita
3 жыл бұрын
Sir your explanation is very clear as well as while presenting your screen is very clear .Thanks Sir.
@RaghavPal
3 жыл бұрын
You're most welcome Smita
@giridharravi5827
2 жыл бұрын
Your explanation looks like god-level bro. Seriously !. Before your tutorial I don't know how to use appium. Now I hope I'll get a good job in QA. Thanks for your precious video bro. Thank you.
@RaghavPal
2 жыл бұрын
So happy and humbled to see your message Giridhar
@tanishasharma9389
4 жыл бұрын
It couldn't be any easier... Loved it.. Thanks Raghav ::)
@RaghavPal
4 жыл бұрын
Glad to hear that Tanisha
@saikishorebolla7858
4 жыл бұрын
Thank you Raghav pal, your explanation gives us confidence In our selves to perform exceptionally well at interview thanks a lot Raghav
@RaghavPal
4 жыл бұрын
You're welcome Sai
@manelzerah
2 жыл бұрын
I just would like to say thank you for these videos, you are helping me so much.
@RaghavPal
2 жыл бұрын
You are so welcome Emanuel
@i2ms8991
Жыл бұрын
Hi I need a little clarifucation from you, when you are ceating a web automation framework using selenium java using maven using page object model, we have a page layer and a test layer. In page layer we do have page classes in pages package and a BaseTest in a base package. Why didn't you use the same approach in designing this mobile automation framework? Can't we create a Base class here and inside that can't we create those desired capabilities and launching the driver method? Then its about calling them in the test classes noh ? Because in page object model you can't use driver apis in test layer, if you do that it happens to be a violation of page object model as per the Martin the inventor of POM. So I am asking again why can't we use the same approach in mobile devices? Is that because they don't have specific pages hence we cant create separate page classes? If that so is what should be the way to create a framework then ?
@RaghavPal
Жыл бұрын
Isuru Yes, you can use the same approach in designing a mobile automation framework using Appium. The Page Object Model (POM) is a design pattern that can be used to decouple the test code from the implementation details of the application under test. It does this by creating separate classes for each page in the application. These classes contain methods for interacting with the elements on the page. The Base class in the POM pattern is a generic class that contains common methods for all pages, such as the method for launching the driver. This class can be used in both web and mobile automation frameworks. In the case of mobile automation, the Base class can also contain methods for configuring the device, such as setting the device name and the device orientation. The test classes in the POM pattern should only call the methods in the Page classes. This ensures that the test code is decoupled from the implementation details of the application under test. Here is an example of how the POM pattern can be used in a mobile automation framework: ``` public class BaseTest { protected AppiumDriver driver; public BaseTest() { this.driver = new AppiumDriver(); } public void launchApp() { driver.launchApp(); } public void closeApp() { driver.closeApp(); } } public class HomePage extends Page { public void clickLoginButton() { driver.findElementById("loginButton").click(); } } public class LoginPage extends Page { public void enterUsername(String username) { driver.findElementById("username").sendKeys(username); } public void enterPassword(String password) { driver.findElementById("password").sendKeys(password); } public void clickLoginButton() { driver.findElementById("loginButton").click(); } } public class Test1 { @Test public void testLogin() { BaseTest baseTest = new BaseTest(); baseTest.launchApp(); HomePage homePage = new HomePage(baseTest.driver); homePage.clickLoginButton(); LoginPage loginPage = new LoginPage(baseTest.driver); loginPage.enterUsername("username"); loginPage.enterPassword("password"); loginPage.clickLoginButton(); } } ``` In this example, the BaseTest class contains the methods for launching the driver and closing the app. The HomePage class and the LoginPage class contain methods for interacting with the elements on the HomePage and the LoginPage, respectively. The Test1 class tests the login functionality of the application. This is just one example of how the POM pattern can be used in a mobile automation framework. There are many other ways to implement the POM pattern. The best way to implement the POM pattern will depend on the specific application under test.
@i2ms8991
Жыл бұрын
@@RaghavPal Thank you very much for your detailed explanation, I think your page classes should extend base class right, hope that it's by a typo that you have written it as public class HomePage extends Page It should be public class HomePage extends BaseTest Am I correct ?
@RaghavPal
Жыл бұрын
go with it
@divyab289
4 жыл бұрын
Hi Raghav, I have been searching alot for some good tutorials on Automation using Appium and Maven and I finally came across your videos - Very well laid out and explained. Thank you so much for helping us get a good grasp of the concepts. I have a few doubts: 1. I used pom to define my dependencies- appium java client, selenium and tetng jars and built the maven application. Now when trying to go to AppiumDriver or AndroidDriver class, I get an error mentioning that the JAR file has no source attachment I couldnt find the path too to mention. How do I go about resolving that as I am interested in exploring the classes in some jar files. 2. When setting the below capability (basically instantiating the ChromeDriver), I am getting the below errror- No Chromedriver found that can automate Chrome '58.0.3029'
@RaghavPal
4 жыл бұрын
Glad to know it helped Divya. 1. You can provide the location of your jar. Check here - stackoverflow.com/questions/15180411/attach-the-source-in-eclipse-of-a-jar 2. You will need to get chromedrive exe ver as per the ver of chrome browser on your system
@mohanbadri7496
4 жыл бұрын
Excellent Tutorial Raghav - Great Work !! Thank you
@RaghavPal
4 жыл бұрын
You're welcome Mohan
@friendonymous
2 жыл бұрын
It is at 43:10 that you realize that you as a viewer didn't notice the issue. A simple demonstration of "no amount of coding knowledge can match the power of the mighty round brackets!!" #JustKidding
@RaghavPal
2 жыл бұрын
ha ha
@williamsilva6747
2 жыл бұрын
Excelente trabalho. Obrigado pela dedicação do seu tempo.
@RaghavPal
2 жыл бұрын
Muito bem-vindo
@ankushtagalpallewar6652
2 жыл бұрын
Thanks Raghav, this is Amazing session. Can someone explain what is in driver initialiation step?
@RaghavPal
2 жыл бұрын
Hi Ankush, this is a class in Appium library, can check more here - discuss.appium.io/t/difference-between-webelement-mobileelement-androidelement-and-ioselement/5254
@mohammedrahman6046
5 жыл бұрын
Raghav you have explained it very well. Thanks for the good work.
@RaghavPal
5 жыл бұрын
You're welcome Rahman
@mahmoodwali5800
4 жыл бұрын
very useful videos and thank you for all your efforts, i have problem finding TestNG part one. thanks again
@RaghavPal
4 жыл бұрын
Hi Mahmood, you can check the complete playlist here - automationstepbystep.com/
@lakshminarayanravichandran7096
4 жыл бұрын
When i created a maven project getting error in pom.xml file when clicked on that error shown like this not able to check this Multiple annotations found at this line: - CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-compiler-plugin:jar:3.1 -> org.apache.maven:maven-toolchain:jar:1.0 -> org.apache.maven:maven-core:jar:2.0.6 -> org.apache.maven:maven-project:jar:2.0.6 -> org.apache.maven:maven-artifact-manager:jar:2.0.6: ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven:maven-artifact-manager:jar:2.0.6: ArtifactResolutionException: Failure to transfer org.apache.maven:maven-artifact-manager:pom:2.0.6 from repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-artifact-manager:pom:2.0.6 from/to central ( repo.maven.apache.org/maven2): The operation was cancelled. - CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-plugin-api:jar:2.0.9, org.apache.maven:maven-artifact:jar:2.0.9, org.codehaus.plexus:plexus-utils:jar:1.5.1, org.apache.maven:maven- core:jar:2.0.9, org.apache.maven:maven-settings:jar:2.0.9, org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9, org.apache.maven:maven- profile:jar:2.0.9, org.apache.maven:maven-model:jar:2.0.9, org.apache.maven:maven-repository-metadata:jar:2.0.9, org.apache.maven:maven-error- diagnostics:jar:2.0.9, org.apache.maven:maven-project:jar:2.0.9, org.apache.maven:maven-plugin-registry:jar:2.0.9, org.apache.maven:maven-plugin- descriptor:jar:2.0.9, org.apache.maven:maven-artifact-manager:jar:2.0.9, org.apache.maven:maven-monitor:jar:2.0.9, org.apache.maven:maven-toolchain:jar:1.0, org.apache.maven.shared:maven-shared-utils:jar:0.1, org.apache.maven.shared:maven-shared-incremental:jar:1.1, org.codehaus.plexus:plexus-compiler- api:jar:2.2, org.codehaus.plexus:plexus-compiler-manager:jar:2.2, org.codehaus.plexus:plexus-compiler-javac:jar:2.2, org.codehaus.plexus:plexus-container- default:jar:1.5.5: Failure to transfer org.apache.maven:maven-plugin-api:jar:2.0.9 from repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-plugin-api:jar:2.0.9 from/to central (repo.maven.apache.org/maven2): The operation was cancelled. Is there any solution for this Eclipse Version - 2020-06 (4.16.0)
@RaghavPal
4 жыл бұрын
Hi Lakshmi, try to update maven project Rt click > Maven > Update > Force Update stackoverflow.com/questions/39926064/coreexception-could-not-get-the-value-for-parameter-compilerid-for-plugin-execu/41416449
@lucastavares137
4 жыл бұрын
Very very good tutorial. Awesome work! Thank you :)
@RaghavPal
4 жыл бұрын
You're welcome Lucas
@vinaykumarreddy5809
4 жыл бұрын
The best tutorial on framework i have gone through.. Thank raghav. keep going on
@RaghavPal
4 жыл бұрын
You're welcome Vinay
@samsonedward2992
4 жыл бұрын
superb Explanation and get knowledge in Appium, Keep going on thanks for your effort
@RaghavPal
4 жыл бұрын
You're welcome Samson
@novanotama
4 жыл бұрын
wow, you create Appium step by step too, thank you Raghav
@RaghavPal
4 жыл бұрын
Hi Novanto, sure, you can find all courses here - automationstepbystep.com/
@KhhyatiRaviPoetry
8 ай бұрын
Amazing, amazing, amazing.. I am short of words
@RaghavPal
8 ай бұрын
Thanks a lot Khhyati.. humbled
@a.c.karunaratne9089
3 жыл бұрын
Hi Raghav, your video tutorials are very helpful and Thank you very much !!! Could you please do a tutorial on how to do automation testing on react native/native mobile apps? Is it differ from Android/iOS automation testing ?
@RaghavPal
3 жыл бұрын
Noted! I wil try
@a.c.karunaratne9089
3 жыл бұрын
Thank you!
@bhushanmate7220
2 жыл бұрын
Thank you so much for this amazing tutorial ! very well explained in vedio and fully all things covered for beginners. Please, make vedio on diff types of exceptions / errors / challenges are getting while creating framework as well more suggestions on Appium automation framework.
@RaghavPal
2 жыл бұрын
Hi Bhushan, sure, I will do
@surbhisambare3142
4 жыл бұрын
Hi Raghav Sir.. I need your help to understand where should I use interface and Abstract class while working on automation framework..?? Actually even when I know the definitions of Abstract class and interface while working alone on my automation framework I am not getting how can I bring Abstract class and interface in framework.. I follow Page object model.. pls help
@RaghavPal
4 жыл бұрын
I will try to create a session Surbhi, for now pls try online help
@surbhisambare3142
4 жыл бұрын
Thanks alot..
@tejaswib.v8059
2 жыл бұрын
Thanks Raghav for these videos.. Very informative.. Will java 17 supports appium? Can I install java 17 to work with appium?
@RaghavPal
2 жыл бұрын
Hi Tejaswi, I could not find any official documentation for Java 17 for appium, you can try with latest JDK and check,
@malaysianyen9037
3 жыл бұрын
Hello, why wouldn't you create a testNG class directly. Instead of importing it?. Sry for the dumb question. Thanks
@RaghavPal
3 жыл бұрын
Hi, after you add TestNG dependency, to use its classes and functions, you will have to import it in your class
@UCIUbaf3b8lN7Q5GA8qO
Жыл бұрын
Hi Raghav, I wanted to ask you something: In order to perform automation with appium and Java & Selenium for Apple devices you will need an Mac machine? Is it possible to perform this under Windows machine? Thanks for your great work.
@RaghavPal
Жыл бұрын
Hi Gabriel, In order to perform automation testing with Appium and Java & Selenium for Apple devices, you need a Mac machine. This is because Appium relies on Apple's XCUITest automation framework, which is only available on macOS. Therefore, if you want to automate testing on Apple devices, you will need a Mac machine to run Appium. While it is possible to write the code for Appium using Java & Selenium on a Windows machine, you will not be able to execute the tests on an Apple device without a Mac machine. However, there are a few workarounds that allow you to perform testing on a real iOS device without a Mac machine. These include: Using a cloud-based testing service that provides access to real iOS devices for testing. Examples of such services include Sauce Labs, BrowserStack, and Firebase Test Lab. Using a third-party tool such as CrossBrowserTesting's Appium Studio, which provides an emulation of XCUITest on a Windows machine. Using a virtual machine running macOS on your Windows machine. This requires you to have a licensed copy of macOS and access to a virtual machine software such as VMware or VirtualBox. However, these workarounds may have limitations in terms of performance, reliability, and device compatibility, so it is recommended to use a physical Mac machine for Appium testing on Apple devices.
@UCIUbaf3b8lN7Q5GA8qO
Жыл бұрын
@@RaghavPal Thank you Raghav, I really appreciate your long explaining and devotion to teach!
@user-ls8kq4fz3d
Жыл бұрын
Where did the appium server come from? Did it come along with the appium java-client dependency? Or did you install it separately?
@RaghavPal
Жыл бұрын
along with appium
@Krishna-Vamsi
Жыл бұрын
Hi sir ,Thanks for doing this Amazing content . sir is this Framework enough to build and automate my live mobile applications ??
@RaghavPal
Жыл бұрын
Yes Krishna, this will help you create the framework, and then you can build and add on top of it as per your needs and application requirments
@PoojaMane-p6z
11 күн бұрын
hi Raghav, I am not able to use AppiumDriver driver; It is giving me fixes. I am using java-client (9.3.0) , selenium-java(4.23.1) , testng(7.10.2). Could you please help me with the troubleshoot?
@RaghavPal
11 күн бұрын
Pooja Let's break down the issue step by step and try to troubleshoot the problem. Step 1: Verify the imports Make sure you have the correct imports in your Java file. You should have the following imports: ```java import io.appium.java_client.AppiumDriver; import io.appium.java_client.MobileElement; ``` If you don't have these imports, add them and see if the issue persists. Step 2: Check the Appium Java Client version You mentioned you're using Appium Java Client version 9.3.0. This version is compatible with Selenium 4.x. However, there might be some issues with the latest versions of Selenium. Try downgrading Selenium to a version that is known to work with Appium Java Client 9.3.0, such as Selenium 4.0.0. Step 3: Check the Selenium version As you're using Selenium 4.23.1, which is a relatively new version. Try downgrading to a version that is known to work with Appium Java Client 9.3.0, such as Selenium 4.0.0. Step 4: Verify the Maven dependencies (if using Maven) If you're using Maven, verify that your `pom.xml` file has the correct dependencies: ```xml io.appium java-client 9.3.0 org.seleniumhq.selenium selenium-java 4.0.0 org.testng testng 7.10.2 ``` Step 5: Check for conflicts with other dependencies If you have other dependencies in your project, they might be causing conflicts with Appium Java Client or Selenium. Try removing other dependencies one by one to see if the issue persists. Step 6: Clean and rebuild the project Sometimes, cleaning and rebuilding the project can resolve issues. Try cleaning and rebuilding your project to see if the issue is resolved. Step 7: Check the Eclipse/IDE settings (if using Eclipse/IDE) If you're using Eclipse or another IDE, check the project settings to ensure that the Java Client and Selenium libraries are properly configured. Please try -
@amandeepsidhu2240
4 жыл бұрын
great description, I have solved my problem...
@RaghavPal
4 жыл бұрын
Happy to know Amandeep
@antirebello3306
3 жыл бұрын
Hi Raghav, first of all Thank u so much for the wonderful lectures, Please help me as while executing I am getting ""TestNG by default disables loading DTD from unsecured URLs. If you need to explicitly load the DTD from a http url, please do so by using the JVM argument [-Dtestng.dtd.http=true]" error.. please help
@RaghavPal
3 жыл бұрын
Hi Anti, check this stackoverflow.com/questions/57299606/testng-by-default-disables-loading-dtd-from-unsecure-urls
@ajivinister
3 жыл бұрын
Hi Raghav, Even after creating the sample test I am not getting the "Run as TestNG" option. It is still showing as 'Run Configuration'... what can be the cause? I followed exactly the same code.
@RaghavPal
3 жыл бұрын
Hi, for that you need to have TestNG plugin added in Eclipse and should have restarted Eclipse. Can check this kzitem.info/news/bejne/2q-L351urGZjl3o
@ajivinister
3 жыл бұрын
@@RaghavPal Thank you. Yes, I have done the same and it is working.
@jiejunlin9771
4 жыл бұрын
Very very cool and interesting .Thank you very much!
@RaghavPal
4 жыл бұрын
You're welcome jiejun
@LeTrongTan26011993
3 жыл бұрын
Step 1 : Open Eclipse 3:40 Step 2 : Install TestNG in eclipse kzitem.info/news/bejne/rJudraSEhpp4eWU 4:00 Step 3 : Create a new maven project 5:20 Step 4 : Add required lib/dependencies 7:31 Appium java client 8:40 Selenium java 9:50 TestNG 10:20 Step 5 : Save - Clean - Build project 12:00 Step 6 : Create 2 folders under src/test/java 12:20 tests pages Step 7 : User src/test/resources create a folder 14:00 apps will keep application files (.apk, .ipa, .app) Step 8 : Inside tests folder create a class - BaseClass 15:15 Step 9 : Create setup & teardown functions 16:00 Annotate with testng annotations Step 10 : Add code for desired capabilities 18:25 Step 11 : Attach mobile device (or make emulator ready) 25:50 adb devices get id and platform ver and add in desired capabilities Step 12 : Start appium server 29:00 Step 13 : Run & test 35:55 Step 14 : Add test class and extend BaseClass 39:05
@RaghavPal
3 жыл бұрын
Thanks a lot for this Tân. Will be helpful
@RaushanKumar-hv6ej
3 жыл бұрын
easy to understand..the way u explains
@RaghavPal
3 жыл бұрын
Thanks Raushan
@kapilrana2361
5 жыл бұрын
Hi Raghav, Thank for such a nice explanation. One query - What is the use of src/main/java and src/main/resources. Please help as I need to create a framework in my project for POC purpose. Thanks in Adance.
@RaghavPal
5 жыл бұрын
Hi Kapil, these are diff folders or packages. You can put your main dev code in src/main/java, your test-related scripts under src/test/java and other resources like config files, drivers, property files etc in resources
@zeck9265
2 жыл бұрын
Thank you so much I have learned so much from this alone, this best explanation so far. One request for you If you could share this project with us. That would be a great help.
@zeck9265
2 жыл бұрын
Thanks could you please share it with us.
@RaghavPal
2 жыл бұрын
Pls check this - github.com/Raghav-Pal/AppiumDemoProject
@hweithiengnee4912
3 жыл бұрын
Hi, thanks for making the videos..really helped me alot in my testing journey. Is adding the appium.io dependency the same as appium studio? I need to use some functionality to simulate the camera, i don't think appium does this since im doing this for mobile app automation, I do not need the selenium dependency?
@RaghavPal
3 жыл бұрын
Hi Hwei, you can either add appium dependency in your project or use appium studio
@pradeeprajendran1011
Жыл бұрын
I have some doubts as mentioned below. 1. I have added dependency which you are added in this video, but I'm unable find MobileCapabilityType java file. 2. I couldnot able to declare thar appium driver variable. Unable to proceed after this
@RaghavPal
Жыл бұрын
Hi Pradeep, will need to check the logs and error details, Can try some online examples
@nadiakusumaputri9677
Жыл бұрын
Hi Raghav, I follow this tutorial but get "Exception in thread "main" java.lang.UnsupportedClassVersionError" when running the TestNG . I am using javac 20.0.1 and java 20.0.1, selenium 3.141.59, java-client 7.0.0, and testng 7.8.0. I am trying to find the solution for this since yesterday but still cant solve this issue. The terminal log said nothing bout this error.
@RaghavPal
Жыл бұрын
Nadia The error message "Exception in thread "main" java.lang.UnsupportedClassVersionError" means that the Java Virtual Machine (JVM) is unable to load the class because it is not compatible with the version of the JVM that is running. This error can occur for a few reasons: * The class file was compiled with a newer version of Java than the JVM is running. * The class file is corrupt. * The JVM is not configured to run Java 18. To troubleshoot this error, you can try the following: * Check the Java version that the class file was compiled with. You can do this by looking at the file header of the class file. * Check the Java version that the JVM is running. You can do this by running the following command: ``` java -version ``` If the Java version that the class file was compiled with is newer than the Java version that the JVM is running, then you need to compile the class file with the older version of Java. If the class file is corrupt, then you need to delete the class file and recompile it. If the JVM is not configured to run Java 18, then you need to update the JVM configuration. I hope this helps!
@kunalshinde5574
5 жыл бұрын
Thank you Raghav , Really nice video , I always waiting for your next video .
@RaghavPal
5 жыл бұрын
You're welcome Kunal. Thanks for watching
@kunalshinde5574
5 жыл бұрын
@@RaghavPal i want to learn how to provide data from Csv file .
@RaghavPal
5 жыл бұрын
I will try to add a video, meanwhile you can check this video that will help you kzitem.info/news/bejne/pIxpuYOlq3iql3o kzitem.info/news/bejne/kWh3tK1oqaeQjXY
@jayshreekant
5 жыл бұрын
@@RaghavPal :)
@vinaygodena6095
4 жыл бұрын
Thank you for the tutorial Raghav. May I know if you have the same tutorial for Native app. I mean setting up the TestNG framework with android or ios native apps.
@RaghavPal
4 жыл бұрын
Hi Vinay, yet to do on native apps
@testinginsights-muktasharma
3 жыл бұрын
Automation Step by Step - Raghav Pal please Raghav can you make more videos on Appium .
@fionabruce2009
3 жыл бұрын
37: 52 the test-output folder was created when you executed the test, its like the results of the test. Will I get the same test-output folder if am using Junit.
@RaghavPal
3 жыл бұрын
Yes, pls try
@feeding.animals9710
3 жыл бұрын
Hi Sir, Is it possible to automate Scanning QR code using Appium? If it is possible please make a video on it. Need your help on this. Thanks
@RaghavPal
3 жыл бұрын
Hi Rakesh, I have not tried, See this medium.com/assertqualityassurance/read-a-qr-code-content-with-appium-and-zxing-cddc94221dc8#:~:text=The%20Solution,read%20the%20QR%20Code%20content.
@feeding.animals9710
3 жыл бұрын
@@RaghavPal Hi Sir in my case need to scan the QR code by using the camera. Is it possible? Could you please give me the suggestions on it? Waiting for your !!
@RaghavPal
3 жыл бұрын
Hi Rakesh, did the link not help? I will also have to check online for this
@Gsuresh_3
4 ай бұрын
In web automation we used to write .xml config file right. Here mobile automation not required that approach?
@RaghavPal
4 ай бұрын
Suresh In web automation, XML configuration files are often used to manage settings and parameters for test frameworks like Selenium. However, in mobile automation with Appium, the approach can be different. Appium typically uses desired capabilities, which are a set of key-value pairs that define the context of the test run. These capabilities can be written in JSON format and included directly in your test code or in a separate JSON file. Here's an example of how desired capabilities might look in a JSON file for an Appium test: ```json { "platformName": "Android", "platformVersion": "11.0", "deviceName": "Android Emulator", "app": "/path/to/your/app.apk", "automationName": "UiAutomator2" } ``` You would then load these capabilities in your test setup. For instance, in Java, you might use the `DesiredCapabilities` class to load them: ```java DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("platformName", "Android"); capabilities.setCapability("platformVersion", "11.0"); capabilities.setCapability("deviceName", "Android Emulator"); capabilities.setCapability("app", "/path/to/your/app.apk"); capabilities.setCapability("automationName", "UiAutomator2"); AppiumDriver driver = new AndroidDriver(new URL("127.0.0.1:4723/wd/hub"), capabilities); ``` This approach is different from traditional web automation, where XML configuration files might be used more extensively. In Appium, JSON is preferred for defining capabilities because it is more concise and integrates well with the programming languages commonly used for writing tests (like Java, Python, etc.).
@ivanosadchenko2835
4 жыл бұрын
your english is really good
@RaghavPal
4 жыл бұрын
I am improving.
@aanyaaryancoolgamers2013
3 жыл бұрын
Hey Raghav.. Very nice sessions.. they help a lot in our work .. thank you so much. I have a question.. can we automate the apps in the mobile which are inside citrix workspace?
@RaghavPal
3 жыл бұрын
It can be tricky Shilpa, Try some online examples on this
@aanyaaryancoolgamers2013
3 жыл бұрын
@@RaghavPal ok.. tq so much for the reply...it is actually knox workspace.. will browse the web.. but it is possible right?
@RaghavPal
3 жыл бұрын
Yes, most probably, you may have to setup within the machine where app is running
@aanyaaryancoolgamers2013
3 жыл бұрын
@@RaghavPal ohh ok.. will try it out.. tq..
@ateeqhalikhan4012
5 жыл бұрын
Hi Raghav,what about folder which we created pages and apps folder,in the above video its just created thats it no code/content added ..
@RaghavPal
5 жыл бұрын
Hi Ateeqh, the apps folder is to add your apk or ipa files for mobile applications and pages will contain class with element locators to create Page Object Model. I mentioned this here - kzitem.info/news/bejne/tqKh2pd4p6Z1aag for Page OBject Model - this will help - kzitem.info/news/bejne/jmZ8k414eoOVeno Complete Appium - kzitem.info/door/PLhW3qG5bs-L8npSSZD6aWdYFQ96OEduhk
@GurudattaPraharaj
4 жыл бұрын
It could have been better if you have mentioned which version of mobile chrome browser is by default supported by appium. in my case, i have chrome version 81 on my mobile, which was not supported by appium by default. so i have to add bellow capability to work: cap.setCapability("chromedriverExecutable", "chromedriver.exe file path");
@RaghavPal
4 жыл бұрын
I will take note of this Gurudatta
@mvenkatmusical5164
4 күн бұрын
I have followed every step but MobileCapabilityType is not resolved. Stuck here. Any help please?
@RaghavPal
4 күн бұрын
Venkat MobileCapabilityType is a part of the Appium Java client, so let's go through some possible reasons why it's not being resolved: Missing dependency: Make sure you have the Appium Java client dependency in your project's pom.xml file (if you're using Maven) or your build.gradle file (if you're using Gradle). For Maven: io.appium java-client 7.3.0 For Gradle: dependencies { implementation 'io.appium:java-client:7.3.0' } Incorrect import: Double-check that you have imported the correct package in your Java file: import io.appium.java_client.MobileCapabilityType; Typo or capitalization issue: Verify that you haven't made a typo or capitalization mistake when using MobileCapabilityType. Java is case-sensitive, so make sure it's exactly as written above. Outdated Appium version: If you're using an older version of Appium, MobileCapabilityType might not be available. Try updating to the latest version of the Appium Java client. Project setup issues: Sometimes, project setup issues can cause problems with resolving dependencies. Try cleaning and rebuilding your project, or even creating a new project from scratch to rule out any project-specific issues. IDE issues: If you're using an IDE like Eclipse or IntelliJ, try restarting the IDE or invalidating the cache and restarting. This can sometimes resolve issues with dependency resolution. -
@sharmilahdevi5584
4 жыл бұрын
Hi, can I know which one is best to do automation. Katalon or by how u show it in this video ? Because I try to use katalon it is not that flexible to select the specific elements when it is comes to app
@RaghavPal
4 жыл бұрын
Hi Sharmilah, Katalon mobile testing is also based on Appium, it has some wrappers and gui over appium, although it's not very mature yet.. I will suggest go this way of creating your custom framework for mobile testing.
@mizoto6550
4 жыл бұрын
getting an error, Google isn't helping. java.lang.UnsupportedClassVersionError: Preview features are not enabled for tests/BaseClass (class file version 58.65535). Try running with '--enable-preview' Any ideas?
@RaghavPal
4 жыл бұрын
Hi Mizoto, what is your java version. I was checking this online and may be this is with java 9 You may try to use a diff ver and check, In case you want to know how to install or update java, can find in my playlist on java under programming section here - automationstepbystep.com/
@mizoto6550
4 жыл бұрын
@@RaghavPalMy Java version is 14
@mizoto6550
4 жыл бұрын
@@RaghavPal I found it out. Right click project > properties > Java Compiler> set compliance level to 1.8. Then it worked
@RaghavPal
4 жыл бұрын
Glad to know this
@rayton710
4 жыл бұрын
Hi, I've been following along in Java and the tests seem to run and pass, however, when running two tests, it doesn't even wait for the browser to load the results of the first search before moving on to the second test. I have "cap.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, 60);" in my code, but is there a different or specific way of waiting between tests? Not sure what else I can try and new to coding so unsure where I would put any wait commands. Any help would be appreciated.
@RaghavPal
4 жыл бұрын
Hi, ideally, implicit wait at global level and page load timeouts should be sufficient, In case there is a particular step that needs some wait with condition, you can try explicit or fluent waits
@delwarhossain8339
2 жыл бұрын
Hi Raghab, this is one of the best example. I tried to follow every single steps but when I run 'tests.java', it is keep failing and here is the error message I am getting >> java.lang.NullPointerException: Cannot invoke "io.appium.java_client.AppiumDriver.get(String)" because "this.driver" is null at tests.tests.testone(tests.java:11) for 'testone'. Since this is the first time I am trying to learn, cannot figure out where the issue is. Appreciate for this detail video.
@RaghavPal
2 жыл бұрын
Hi Delwar, this can help stackoverflow.com/questions/64964011/cannot-invoke-io-appium-java-client-android-androiddriver-manage-because-th
@fionabruce2009
3 жыл бұрын
Hi please how did you setup the output folder where all the report are stored, am using Junit and in the baseTest how will I use @AfterSuite
@RaghavPal
3 жыл бұрын
Hi Ifeoma, pls point the time in the video so I can refer quickly
@sesh07
5 жыл бұрын
Hi Raghav, Which eclipse version your using, There is no testng plugin for the latest eclipse version.
@RaghavPal
5 жыл бұрын
Hi Seshadri, I used 2018-12 ver. Pls check this video - kzitem.info/news/bejne/2q-L351urGZjl3o
@dvgs5375
4 жыл бұрын
Very good tutorial on Appium, nice explained
@RaghavPal
4 жыл бұрын
Glad you liked it
@hassantahir2851
4 жыл бұрын
Thanks for reply i have viewed your complete playlist but still i am feeling its not enough.Can you please upload a project tutorial so that a lot of queries would be resolve
@RaghavPal
4 жыл бұрын
Sure Hassan, I will plan to make a more detailed project video. You can also check existing here - automationstepbystep.com/
@RaiderIQ1
4 жыл бұрын
Hi Raghav thank you agin for this courses. I faced an issue which was => "No Chromedriver found that can automate Chrome '81.0.4044'" I fixed by adding this deviceCap in the Setup() => caps.setCapability("chromedriverExecutable", "C:\\ChromeDrivers\\81.0.4044.138\\chromedriver.exe"); What I'm looking for is way to skip this step. There's such thing ? Thx
@RaghavPal
4 жыл бұрын
Hi Haider, If you add the path of the chromederver.exe in Path env variable, you may try to skip this
@sidneybervoets9964
2 жыл бұрын
Can you use one driver for both android and iOS or is their a work around ? or is it not possible to write 1 test for android and iOS
@RaghavPal
2 жыл бұрын
Hi Sidney, you will need to do some changes in Desired Capabilities, Can put this in a condition
@sowmyapendyala9156
3 жыл бұрын
Hi Raghav, It seems the video link for adding "TestNG to eclipse" is redirecting to some other youtube channel. Please check
@RaghavPal
3 жыл бұрын
Thanks for letting me know Sowmya, I have updated
@KashifKhan-yt2cg
2 жыл бұрын
hello the adb devices command does not work in the latest version of macos and I can't seem to find an alternative
@RaghavPal
2 жыл бұрын
will need to check on this Kashif
@muhtharmk4386
3 жыл бұрын
Good one! Can you help me on this please, I see adb is not recognized in command prompt when i search for adb devices. I have verified the system variables and also path, adb is placed inside platform-tools.
@RaghavPal
3 жыл бұрын
Hi Muhthar, Pls check if you have set path of adb in env variables (system variables) Pls check this : stackoverflow.com/questions/8744758/adb-is-not-recognized-as-internal-or-external-command-on-windows
@user-ls8kq4fz3d
Жыл бұрын
I'm sorry, but I didn't understand. In maven dependencies, you only listed appium java CLIENT. This will download the libraries to the .m2 folder. Where did the installed appium server come from in the system?
@RaghavPal
Жыл бұрын
That was done separately using npm install appium, pls check the earlier videos of this playlist, Can refer from here - automationstepbystep.com/
@user-ls8kq4fz3d
Жыл бұрын
@@RaghavPal Thanks
@ZulfiqarAli-sp3nm
4 жыл бұрын
Thank you Raghav....you help me a lot..
@RaghavPal
3 жыл бұрын
So nice of you Zulfiqar
@jagadambika1590
3 жыл бұрын
for cannot call non w3c standard : use caps.setCapability("appium:chromeOptions", ImmutableMap.of("w3c", false)); in capabilities
@RaghavPal
3 жыл бұрын
Hi Jagadambika, thanks for adding
@maheshsolanki9303
5 жыл бұрын
Awesome Tutorial....................
@RaghavPal
5 жыл бұрын
Thanks for watching Mahesh
@AGOF_Vlogs
4 жыл бұрын
Great explanation nice and clean. Thanks
@RaghavPal
4 жыл бұрын
You're welcome Athar
@prateekjain2473
3 жыл бұрын
Awesome Tutorial 👍👍 can you please tell me how can we do automation testing in Perfecto ??
@RaghavPal
3 жыл бұрын
I will plan on that Prateek
@adityajain1708
4 жыл бұрын
Hi Raghav, I am getting "Error: Could not find or load main class org.testng.TestNG" when i am trying to to do Run As- TestNG. Can you please help me here? Also i had added TestNG dependencies already
@RaghavPal
4 жыл бұрын
Hi Aditya, pls check if this is path related issue, Check here stackoverflow.com/questions/17894938/getting-error-could-not-find-or-load-main-class-org-testng-testng#:~:text=Possibly%20your%20testng.,%3A%5CWorkspace%5Cprojectname%5Clib%20.&text=Check%20that%20the%20lib%20folder%20contains%20testng%2D6.8.&text=jar%20(or%20any%20other%20version)%20with%20the%20jars%20that%20gets,when%20we%20add%20TestNG%20library.
@larasoftimpact
2 жыл бұрын
How to automate android apps using VPS without VT virtualization? is there any custom images? thanks
@RaghavPal
2 жыл бұрын
will need to check on that
@juanbaquero8628
3 жыл бұрын
Remember to set the TestNG dependency in the pom file to a version equal or lower than the TestNG Eclipse plugin to avoid a failure when you run the test.
@RaghavPal
3 жыл бұрын
thanks for adding Juan
@juanbaquero8628
3 жыл бұрын
@@RaghavPal Thank you Raghav, I've learend a lot from you videos, I really appreaciate your effort!
@RahulRana-ky3ze
3 жыл бұрын
Very nicely explained. Thanks
@RaghavPal
3 жыл бұрын
You are welcome
@shivanagoudak9626
4 жыл бұрын
Hi, After launching appium inspector , i am not able to tap on particular elements, its showing interaction are not available for thia element, and at left side it captured the screen but not able click any text field or button Device mac App calculator
@RaghavPal
4 жыл бұрын
Hi Shiva, There may be some elements hidden or inside frames, You can check the properties and DOM and try to create a locator, Can take online help too
@qw8161
3 жыл бұрын
Thank you, so much. God bless you!!!
@RaghavPal
3 жыл бұрын
You are so welcome!
@user-hx8xm2cb8x
5 ай бұрын
Hi, this video has been posted 4 years back , in this year 2024 am planning to do android mobile application testing using Appium, Cucumber framework and java language which is the best IDE to use eclipse or InteliJ, Please assist me, it would be a great advice for me, thanks in advance!
@RaghavPal
5 ай бұрын
Maha Lakshmi Now we have Appium 2 and there are changes. I will plan to create new sessions as soon as possible. The current sessions will also help
@zarifjamshidi8050
3 жыл бұрын
Thank you it was very easy and clear
@RaghavPal
3 жыл бұрын
Most welcome Zarif
@mailtesting3198
4 жыл бұрын
hi raghav your tutorials is very helpful buddy, can you make a video on swipe coordinates of appium with java??? i searched on youtube but didn't find a single helpful tutorial about it.... both vertical and horizontal swipe please... thanks
@RaghavPal
4 жыл бұрын
Hi, I will work on this, but can take some time
@mailtesting3198
4 жыл бұрын
@@RaghavPal okay
@TheTheZiani
3 жыл бұрын
Hi Mr raghav i want to ask you something how can i How to upload / attach file using Appium
@RaghavPal
3 жыл бұрын
I will have a session, for now pls check some online examples
@sowmyam8979
4 жыл бұрын
Hi Raghav, I am facing an error :Process finished with exit code 255 ,org.testng.TestNGException: (in IntelliJ),can you help me to fix the error
@RaghavPal
4 жыл бұрын
Hi Sowmya, can check this stackoverflow.com/questions/27654407/automated-test-fails-on-button-click You may need to do some more online search to find a final solution
@tarikchaouki4048
3 жыл бұрын
hi raghav thak you sir alot but when i run my test it gave me java.lang.NoClassDefFoundError: org/openqa/selenium/virtualauthenticator/HasVirtualAuthenticator could you help to fix thia sir Raghav and thank you so much.
@RaghavPal
3 жыл бұрын
Hi Tarik, this mostly is due to some missing lib. Pls check and compare your pom
@royalindian001
2 жыл бұрын
Hello raghav , thanks for the tutorial , it is very useful. how can we run these scripts on AWS Device farm instead of connecting the device locally ?
@RaghavPal
2 жыл бұрын
I will check on this
@royalindian001
2 жыл бұрын
@@RaghavPal - thank you so much for checking on this. will look forward to hear from you.
@automationra
4 жыл бұрын
Hi, I got pass results after I run as TestNG, but the browser from the mobile failed to launch.
@RaghavPal
4 жыл бұрын
Pls check the logs for troubleshooting
@ThangTran-gk2bc
3 жыл бұрын
Hi, i have a problem, Error: Could not find or load main class org.testng.remote.RemoteTestNG ? I Add TestNG Plugin In Eclipse. I add selenium version 3.141.59, appium version 7.3.0, testng version 6.14.3 in pom.xml . please help me !
@RaghavPal
3 жыл бұрын
Hi Thắng, did you add testng in pom dependency. Pls check this - stackoverflow.com/questions/32943504/error-could-not-find-or-load-main-class-org-testng-remote-remotetestng
@ThangTran-gk2bc
3 жыл бұрын
@@RaghavPal Hi Raghav, i added file testng.xml . Thank you so much !
@nagn4347
5 жыл бұрын
Hi Raghav, I am getting following error can you help on this. Exception in thread "main" 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: Could not find 'aapt' in PATH. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.
@RaghavPal
4 жыл бұрын
Hi, aapt.exe is the Android Asset Packaging Tool and is part of the Android SDK. Can you confirm that you have aapt.exe somewhere on your machine? There are specific directories that the script is looking in to find it. You might want to try reinstalling the Android SDK. I was reading some posts that aapt.exe may be named aapt2.exe for some SDKs. Could you check to see if that file exists on your system? You should be able to find it in: C:\Users\\AppData\Local\Android\sdk\build-tools\ If it does exist, you might be able to create a shortcut named “aapt.exe” to that file. forum.katalon.com/t/could-not-find-aapt-exe/10922/10 A user solved it using below steps: 1 I installed Android Studio and 2 installed SDK from Android Studio. export ANDROID_HOME=/Users/darya1/Library/Android/sdk export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/tools/bin export PATH=$PATH:$ANDROID_HOME/platform-tools 3 Edit the configuration setting of Appium server to point to the ANDROID_HOME and JAVA_HOME.
@seonadfernandes5767
3 жыл бұрын
This video is super useful Raghav. Have you done any tutorial of the same thing with BDD framework using Cucumber?
@RaghavPal
3 жыл бұрын
Hi, I have BDD Cucumber with Selenium. Can get all here automationstepbystep.com/
@seonadfernandes5767
3 жыл бұрын
That one is using JUnit and without Appium right? I'm facing some issues using BDD, TestNG and appium for a flutter mobile app.
@RaghavPal
3 жыл бұрын
I will need to check for Flutter, do not have much knowledge as of now Seonad
@rashmikt1139
4 жыл бұрын
Hi I am no route found.setting content type to text/plain in appium and if I type the URL in google it is showing the url '/hd/hub' did not map to valid resource Can you please tell how to clear the error
@RaghavPal
4 жыл бұрын
Hi Rashmi, pls check if this helps - stackoverflow.com/questions/44410681/the-url-session-did-not-map-to-a-valid-resource-how-to-run-desktop-applicat
Пікірлер: 719