Automate mobile web application using Selenium
HTML-код
- Опубликовано: 8 сен 2024
- In this video, we will execute Selenium test on Android real device and will use Chrome browser for execution.
Link for post or code
learn-automatio...
~-~~-~~~-~~-~
Please watch: "How To Create Maven build For Selenium Framework"
• How To Create Maven bu...
~-~~-~~~-~~-~
Mukesh Otwani your have the best videos of automation ever. i watch a lot another people but you have the best understanding videos.
Hi Waqas :) This comment made my day. Thank you
Mukeshji, we are awaited for more videos & new topics on Appium :-)
+Siva Garikepati yes siva will upload soon.
Successfully able to run my first program on my android device . Thx for info sharing :)
+Ravi Nelluri Great Cheers Happy Weekend
+Mukesh otwani : Waiting for continues videos.
+Mukesh otwani. I am unable to install the Genymotion plugins for eclipse . How can solve this problem
+Mukesh otwani WebDriver driver = new AndroidDriver(url, capabilities); it's giving warning @AndroidDriver saying that "AndroidDriver is a raw type. References to generic type AndroidDriver should be parameterized" ?? What was this one ??
Tnx, i'm able as well now to start my first automation on chrome, but i wanna start working on automation on an App, and waiting for your next video
+MOMO KIA Thanks Momo, next week I will upload on how to work with hybrid and native application..
Keep visiting :)
Thanks a lot!
Your videos are very helpful.
Please keep posting more videos on Appium.
+qa tester Thanks yes will update soon
Hi mukesh ....your all videos are so helpful for us .... and i learnt a lot from them ....have one request ...Could you please make a video on how to connect virtual device with selenium to write scripts? i am not able to make connection between both ... thanku
I appreciate for this, outstanding video & information provided. I have successfully connected to live device and good to go...
Regards - SG
+Siva Garikepati Cheers :)
Thank you Sir. Nice explanation.
Welcome Rahman :)
Very well organized code with comments appreciated and expecting more videos on mobile qa automation
Nicely explained! Looking forward to see more content related to Appium!
Sure Dipti.. Appium has lot of changes now so I will update new videos soon.,
Hi mukesh sir.. your videos very helpful to me.. thank you
Hi ramarao,I am glad my videos are helping you.
Thanks Mukesh.. This Video really helped me..
Hi Neeraj I am glad to know it helped you :)
Hi Mukesh,
Glad to find your channel today when I was struggling a lot to learn Mobile Automation through Selenium(Appium). I am working as Software Tester and i am very new to Appium although I have knowledge and handson around Selenium.I am looking forward to automate the MNA(Mobile Native App) of our Client and we are accessing Mobile Devices through Perfecto Cloud. I can see you have explained the concept for Physical Device. Can you please help me how I can proceed further in order to automate the App inside Perfecto Mobile Device using Selenium Appium.
Hey Raman Thanks for nice feedback. I have not used perfecto so not sure on this.
Very well explained Mukesh..thanks.
Most welcome Kuldeep :)
HI Mukesh,
Its great video, thanks for the same
Welcome Sam
very nice and clear explaination
+Shilpa Thans you Shila. Keep visiting.
Thanks you sir for very useful video🙂
Most welcome
Hi Mukesh,
In My system, appium 1.6.4 is not giving an option as used by you in video fro android and setting.
Kindly help me where I have been missing something in installation.
Thanks
Rahul
Im also facing the same issue. can you plz guide us Mukesh?
Hi Mukesh, your method of explaining the stuff is awesome.
Can you please help me out with one scenario.
- I have a mobile website [using android Chrome browser]
- it has a Google map location link,
- on clicking Google maps app opens, showing exact location [which is fine]
- Now I need to close the Google Map app and want google chrome app to come on foreground, so I can run my further test cases
Is it possible, if yes, then can you please tell me the solution. Thanks
Hi Shriyash in order to work with native app and browser you need to create 2 instances.
First one will handle app and second one will handle chrome browser.
When I inspect login button in firebug I cannot find an id="u_0_5" but it appears when inspected though chrome browser. Why is this?
+Stride Purple strange
I have few questions on this is, Could you please brief on use of .apk files and precisely which applications require .apk files to test via Appium (Native, Web and Hybrid?) whether is live or simulator. Thanks - SG
+Siva Garikepati Hi Siva for Hybrid and native app we have to download apk file. I will post video on this soon.
Hi Mukesh,
waiting for more concepts on APPIUM
+Sandhya Reddy Hi will upload in march
+Mukesh otwani March is over .. when ?
Jayshrikant since I am providing free so you have to wait for next video. I am stuck with some work once I am done will upload soon.
Thanks
+Mukesh otwani Sure sir .. Thanks a lot for your efforts.
hi,
I had few questions,
1. can we use webelement or mobile element for apppium driver when use minor automation
2. difference between driver.findElement(By.xpath("element locator"));
and
driver.findElementByXpath("element locator");
3. scroll the app in android with swipe method for different mobile screens x and y coordinates will vary how to handle the same
3.1 can't we use javascriptExecutor for Android to scroll the app
Hi Mukesh,
While running the script chrome is open fine but the site is not opening, the Blank page is displayed and URL field "data " written is displayed. But the site is not loading.
How to fix the issue?
Thanks
Hi Mukesh, Awesome tutorial... is it possible to get all the links from an App (say Netflix app) in android device and play random videos in the same app?
Yes Avinash, you can use findElements method along with random class.
Why do you say to select "No reset" option since this a test on the browser and not a test on a native app? So how can anything be "reset"?
+Stride Purple It will reset your chrome default setting :)
very helpful, nice explanation.
Thanks Vaibhav
hello sir I got error::::::::
Exception in thread "main" org.apache.bcel.verifier.exc.AssertionViolatedException:
FOUND:
INTERNAL ERROR: Oops!
Exiting!!
at org.apache.bcel.verifier.exc.AssertionViolatedException.main(AssertionViolatedException.java:102)
I am using java client 6.0.0.BETA2.jar
and selenium ser standlone-3.8.1.jar
and
Hi mukesh... All your videos are very very helpful for me.... And am stuck in executing all the programs from testng.xml file and followed your video for that but am getting error at 3rd file everytime that is server error... Please help me
Hi Srilakshmi, please send logs with screenshot My email is mukeshotwani@learn-automation.com
Hi Mukesh, your videos are indeed a great source of information. I am currently facing an issue. Can we change the desktop view of a web application to 'mobile view' through automation in selenium? I can do it manually but am not able to figure out how to change desktop view in mobile view. Could you please guide me in this regard?
Yes, you can. Please follow below code for the same. You can change device name from available option from browser.
Map mobileEmulation = new HashMap();
mobileEmulation.put("deviceName", "Pixel 2");
Map chromeOptions = new HashMap();
chromeOptions.put("mobileEmulation", mobileEmulation);
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);
WebDriver driver = new ChromeDriver(capabilities);
driver.get("www.google.com");
Here is the official document link for reference chromedriver.chromium.org/mobile-emulation
Thanks a lot Mukesh
Hi Mukesh.. i always followed your videos for learning automation. i have a small request please improve your audio device capability, as your voice is very low and difficult to listen some time. Hope you will work on this.. Thank You.
Hi Rakesh,
Yes, I improved a lot in audio quality. Above video is 2015 video. If you check new videos you won't find this issue.
Check out the latest video audio quality
ruclips.net/user/MrBantu50videos latest videos link
Great video even though I didn't know much about Java, I could understand it. A few questions, please, how to make an app that runs on headlles and returns information? Do you know how to teach? Thanks.
Hi Mukesh.. thanks for the video. Will this work on a real android device or do I have to do something more to get it work on a real android device..? Thanks.
I am working on android application in eclipse,
i learnt more form your videos...
i want to know how to test a application by using relative layouts as their is no text, resourse-id, content-desc are nill for some items.So, can you please tell me how to work with layouts
Exception in thread "main" org.openqa.selenium.UnsupportedCommandException: That URL did not map to a valid JSONWP resource
+shailendra rathore check url seems like url issue only
Hello. Great video congratulations. One doubt, is it possible to use selenium on real devices, using for example the firefox driver in headlles mode? Do you have a video about it? Thank you.
Hi mukesh.. I think You have selected Android version 4.4 (latest one available) in Appium settings where as in the desired capabilities scripts you have given it as 5.1.1.. Will not create any problem??
Hi Mukesh,
Thank you for sharing valuable information. I don't have Android device.
Could you please tell me how to run this script in Emulator.
--
Thanks
+Nagarjuna Settipalli use Geny Motion as emulator .
Hey Mukesh,
At 6:28 you have created a Project and pasted the code in there right ? Which is that Software you have used to paste the code ?
And also please explain how to add Selenium server standalone libraries to that software.
thanks
Awesome Video. It helps a lot.
Glad to hear that it helped you Nitin :)
HI Mukesh, you have given one 1 android version when you start appium server and in the code you have given "capabilities.setCapability(MobileCapabilityType.VERSION,"5.0.1");" My question is in which android version you tested the facebook login ?
Hi Ratna 3 years ago it was 5.0.1 not latest versions are 8 and 7.. en.wikipedia.org/wiki/Android_version_history
HI Thanks for your answer, but i am not clear. sorry to bother you.Question is : in the above video, the codes runs in the android version given in capabilities.setCapability(MobileCapabilityType.VERSION,"Any version" ? or version given when we start appium server ?
HI Mukesh, why did you connected using team viewer ? any benefit ?
Hi Ratna for mirroring screen I used for youtube videos. You can ignore this part while testing.
Hi Mukesh,
In this video I have seen that u r using motorola phone and u have access ur phone from pc.I am also using Motorola phone, but i can't access my phone from pc using team viewer.I can only see the screen from my pc.
It would be more helpful If u give me the solution for this.
Thank u Mukesh
Hi mukesh,your videos are good. I have one question. is it possible to make single appium setup with single code base for mobile web app of Android & IOS?
Yes its possible you can use Page Object Model and collect locators of iOS and Android and keep it in respective pages using array and pass it using desired capabilities based using remote driver for iOS and android driver for android.
Mukesh, I think we can test in android application using Selenium Webdriver without Appium right?
+Mohan Vorganti No Mohan you need Appium server or Selendroid to communicate with mobile device then rest of the things taken by Selenium
and would you please put a link of your code somewhere here so that we could download it,,
+MOMO KIA learn-automation.com/execute-appium-selenium-test-android-chrome-browser/
Hello Mukesh,
Facing issue while launching chrome browser Appium. Chrome browser is getting opened multiple times(4 times) and closing even if a single @test method is present. After browser launch url is not getting entered.
Download latest chrome driver and put it in the Appium chrome driver location (replace the existing one),
C:\Program Files (x86)\Appium
ode_modules\appium
ode_modules\appium-chromedriver\chromedriver\win\
It should work
Hi Abdul Malik thanks for the suggestion and i had the similar issue and on replacing the the driver with latest one , it worked.
I have another query how do i test the same case on Internet explorer or firefox browsers. Do we need to replace the drivers in these cases too. Kindly guide me.
Not sure, Internet Explorer is not there on mobile, firefox is..however last time i Checked I found that there is no way you could start any other browser in mobile except chrome as drivers for those browsers are not there..
yes you are correct malik , i got it confirmed from another person also. Only chrome they have used to test mobile test cycles.Thanks.
I am trying to install on mac i just see this pop up , after entering ip and port server starts i dont see as many options as on your screen.
Hi Yogesh, for MAC process is totally different. This will only for windows.
Thanks for reaching out can you make it for mac . I wanted to take your course please let me know
I have other questions- can you explain , how you connect an external device with appium server or testing script?
Hi Mukesh,
I have a unlock screen issue. I have a problem to open any browser. Thank you
Hi Alla you can remove auto lock while doing automation.
Hi Mukesh, could you please write this program from the beginning step by step like how you used to show in selenium? I am getting errors and I m not able to solve it. Thank you.
Is there a way to get HTTP codes from webpages with selenium?
Hi Marco,
Its possible I have shown the same thing in below post
learn-automation.com/find-broken-links-using-selenium/
Can we validate overlapping links, overlapping text etc.. Or I need to go for GUI automation
Hi Sunny any example of this?
@@Mukeshotwani Suppose we want to automate web application on google chrome browser on android device, and on UI the 2 links overlap each other, as it fail responsive UI. Can we validate it using appium that 2 links are overlapped in UI
There are chances that UI element is disturb around screen causing it like particular link is not working or one, text is overlapped to other etc
Does it support to develop in python , java instead ? if so where ?
Hi Mukesh,
Its a very helpful video.Thanks for that.
I am a new bee to Appium and tried with the same code as you have written, but am getting the following error when executed the code
"An unknown server-side error occurred while processing the command. Original error: New app path browser did not have extension .apk (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 669 milliseconds"
Could you please help me out solving this issue?
Thanks.
Hi Vidya, as per error log I can see the app you are trying is not android app. Kindly cross check.
+Mukesh, Thanks for your reply. Do I need to download Genymotion with Virtual Box(143MB) or Genymotion without Virtual Box(43MB).
Hi Nagarjuna download Genymotion with Virtual Box(143MB)
Hi Mukesh, your video is very helpful. I’m having issues starting Chrome on my Android real device. Below is the environment I’m in:
* Android Galaxy J7 version 6.0.1
* java-client 4.1.2
* Eclipse Mars 1 (4.5.1)
* Java version 1.8
* Android Chrome version 55.0
* Appium version 1.5.3 (Ara)
I’m using your code but I’m starting Appium server programmatically instead of manually. The problem I’m having is that Appium starts my Chrome browser as a fresh install or empty page, then exist Chrome, then my test fails.
At 4:32 you mentioned to enable “No Reset” for Chrome, so I decided to add this to my desired capabilities: capabilities.setCapability(MobileCapabilityType.NO_RESET, true);
However, it does not work and I’m trying to understand how to make Appium not to reset my Android Chrome but instead to use my existing Chrome profile that has all my settings. Can you please help or anybody?
Download latest chrome driver and put it in the Appium chrome driver location (replace the existing one),
C:\Program Files (x86)\Appium
ode_modules\appium
ode_modules\appium-chromedriver\chromedriver\win\
It should work
Hi, I'm getting this error message: FAILED: test1
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: spawn OK) (WARNING: The server did not provide any stacktrace information)
hello, I don't have an android device so I installed genymotion and using android 7.0 version on virtual box. But not able to connect device to pdnet! how can we do it?
Can we automate mobile device which are in gigafox(paid environment), using appium or any other tool?
Hi Mukesh , could you please respond to my query asap, as I am doing poc on this
Hi Prakash, never worked with Gigabox but process will remain same. You need to use Selenium Grid in order to achive this.
Hello Mukesh,
Could you please help me on how to add Mod Headers while launching the application on mobile device?
Thanks
Hey Mukesh, What will be the difference in the settings if we use an emulator like Genymotion?
+Anu Dube Hi Anu,
no setting requird.
Can we connect mobile through usb cable..Or it's connect only through teamviwer?
Please use usb cable
You can first connect with cable and using adb connect command and providing ip address of your phone, you can connect wireless with your PC.
nivedita mirjikar Hi Nivedita, when i type "adb devices" in command prompt and hit enter. It says list of devices attached. but no devices displayed. Please help.
Hi Mukesh,
I am getting the following error message
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: spawn ENOENT) @ the following line
WebDriver driver = new AndroidDriver(url, capabilities);
The Version of Selenium Standalone server is 3.4.0
The Version of Java-Client is 5.0.0-Beta.jar
Version of APPIUM is 1.4.13.1
Please help me in resolving the issue
Hi Mukesh Sir..please comment the below video. program and text note book.
Hi Mukesh,
I m beginner in the field of automation ,
i m getting this message while launching appium server-
> Checking if an update is available
> Update not available
> Launching Appium server with command: C:\Program Files (x86)\appium-android\Appium
ode.exe lib\server\main.js --address 127.0.0.1 --port 4723 --app C:\Users\Surbhi\Desktop\selenium\selendroid-test-app-0.17.0.apk --app-pkg io.selendroid.testapp --platform-name Android --platform-version 22 --automation-name Appium --device-name "Viaan V551" --log-no-color
> Killed Node Server.
> Appium server process ended
Plz help me out what does it mean??
Hi mukesh,
how can i solve this issue
org.openqa.selenium.WebDriverException: ERROR running Appium command: ENOENT, no such file or directory 'D:\sdk\platform-tools;\build-tools'
How to upload file using appium on mobile web app via chrome and Safari ?
bro I am getting this error while trying the command adb devices
Err: adb server version (31) doesn't match this client (36); killing...
* daemon started successfully *
Can you help please ?
Hi Mukesh, facing an issue, the chrome browser opens on my Galaxy 6.0.1. It does not navigate to facebook. on galaxy address bar it just says "data:,". any help would be appreciated. I have sent you and e-mail with this issue also.
You should try with Appium 1.6.4 version
Hi, Mukesh, I am using Appium 1.6.4 version but the same problem I am getting.
Please provide a solution?
Hey, did you find an answer, Im having the same problem :)
Hello sir,
I am facing one issue, for me the chrome browser is opening and getting closed, not navigated to the url, and following is the error message i am getting
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: A new session could not be created. (Original error: session not created exception
from unknown error: Runtime.executionContextCreated has invalid 'context':
Please help
Hi,
Iam facing "PLATFORM_NAME cannot be resolved or is not a field" while trying to defining PLATFORM_NAME. is there any clue to proceed further..
Hi mukesh,
I followed your video when i am trying to automate in my device its showing below error message
I am using
android-sdk_r24.4.1-windows
AppiumForWindows_1_4_13_1
java-client-3.3.0
PdaNetA4197
java.lang.UnsupportedClassVersionError: io/appium/java_client/android/AndroidDriver : Unsupported major.minor version 52.0
Please help me ASAP in solving the issue
Hi Paritala please use Java 8 to work
Hi mukesh,Even after using java8 also same error occuring
Hey,I copy code from ur website ,its running Chrome on mobile but not moving forward ,no error coming ,screen remain with 'data:,' url ...what is bug ?also I run Automate Mobile application,it running completely ,so whats issue here ?
Hi Shree you need to update chrome driver version in appium to fix this issue.
Hi Mukesh, I am getting below error, not sure how to fix this. Can you please help? Thanks
Failed to install C:\Program Files (x86)\Appium
ode_modules\appium\build\unlock_apk\unlock_apk-debug.apk: Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.unlock without first uninstalling.]
Can anyone tell me where to find the appium server addrees url which is required to paste inside url
When I import org.openqa.selenium.remote.DesiredCapabilities
then show error is org.openqa.selenium.remote.DesiredCapabilities is not accessible
bro please let me khow what I do
Hi Mukesh,will it work if we don't install Microsoft webdriver?when tried to install that,it is saying incompatible to current browser..rather I have installed MS dot net framework..will this be replacable to MS webdriver?
+pradeep Hope it should work.
Dear Mukesh,
i have fallowed the same steps but always getting
error: Failed to start an Appium session, err was: Error: Did not get session redirect from Chromedriver
> info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Did not get session redirect from Chromedriver)","origValue":"Did not get session redirect from Chromedriver"},"sessionId":null}
Please help
+mohan ms Strange Mohan it works always for me.. Send ur code mukeshotwani@learn-automation.com
How to open incognito mode using desired cap ?
i cant attach my device to eclipse plz help me
HI Tej make sure device is attached via pda.net
It goes well upto the facebook login page but after that Email and password is not entering?? code is alright i dont know whats wrong can you helpp ??
Hi Mukesh, when i type "adb devices" in command prompt and hit enter. It says list of devices attached but no devices displayed. Please help.
It means your android device is not connected
hey mukesh rightnow appium server totally changed can you please updated one video
sure will make on new one
Hi, Mukesh
while launching the node server i am getting this error..
> Error: Cannot find module 'C:\Program Files (x86)\Appium
ode_modules\appium\lib\server\main.js'
Is this fixed? Arohiee
yes
hi mukesh i am getting below error please help:
A new session could not be created. (Original error: An unknown server-side error occurred while processing the command. (Original error: unknown error: Failed to clear data for com.android.chrome on device 1206cc91: Error: java.lang.SecurityException: PID 14981 does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.android.chrome
Hi Madhur I am also getting same issue I have tried solutions on stack overflow bt not able to solve.Can u plz help.
Download latest chrome driver and put it in the Appium chrome driver location (replace the existing one),
C:\Program Files (x86)\Appium
ode_modules\appium
ode_modules\appium-chromedriver\chromedriver\win\
Hi Mukesh,
I am getting the below error for capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME,"Android"); :
PLATFORM_NAME cannot be resolved or is not a field
Java Client: 7.0.0
How can I resolve the above issue.
Thanks.
Hello were you able to solve that? I have the same error
Hi Mukesh,
How to upload files in the mobile browser
Hi Chakaradhar here is the link www.browserstack.com/docs/automate/selenium/test-file-upload#uploading-files-from-your-machine
Thanks Mukesh
But by using remotedriver we cannot Send files from our local to remote cloud mobile device in Perfecto
@@chakradhargollamudi5557 perfecto supports the same check official doc
I keep getting an error "Your computer is running adb.exe. It is not compatible with pdanet."
Hi Peter then you need to uninstall PDANet and download it again and while installation update the drivers.
Hi Mukesh, it says, adb exe is not compatible, plz help how can i fix this.
Plz upload a update video related to "HOW TO DOWNLOAD Appium"
Hi Mukesh,
I am getting error i.e Session could not created in eclipse
for Appium...
error: Logcat capture failed: spawn "C:\android-sdk-windows\platform-tools\adb.exe" ENOENT
Please help to get out of it.
Hi Pankaj,
Which appium version you are using ? I would suggest use 1.4.13 version of appium and follow the same steps again.
K, I will try..
Are you test on real device in this video?
can i build a script like this on my mobile app?
Yes Gabriel, Appium is for mobile automation so you can use either your device or AVD for the same.
@@Mukeshotwani ok, and the appiun can run without a computer, build a .apk and when I run this app normally?
Hi, Mukesh. The below is the error i am getting. But i see some actions happening in the Mobile browser.Its opening the browser and entering the data like "/.data"
Error Code:
Nov 26, 2016 7:45:12 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
[Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\Default suite\Default test.xml
[Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\Default suite exists: true
FAILED: test1
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: An unknown server-side error occurred while processing the command. (Original error: unknown error: Device ZY223G5WGF is not online
(Driver info: chromedriver=2.18.343845 (73dd713ba7fbfb73cbb514e62641d8c96a94682a),platform=Windows NT 10.0 x86_64))) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700'
System info: host: 'Madhuram', ip: '192.168.56.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_60'
Driver info: driver.version: AndroidDriver
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:422)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:216)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:161)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:64)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:69)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:40)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:128)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:141)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:36)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:114)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:132)
at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:92)
at demo.StartChrome.test1(StartChrome.java:46)
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:497)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:100)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:646)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:811)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1129)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
at org.testng.TestRunner.privateRun(TestRunner.java:746)
at org.testng.TestRunner.run(TestRunner.java:600)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
at org.testng.SuiteRunner.run(SuiteRunner.java:268)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1264)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1189)
at org.testng.TestNG.runSuites(TestNG.java:1104)
at org.testng.TestNG.run(TestNG.java:1076)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:152)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:57)
===============================================
Default test
Tests run: 1, Failures: 1, Skips: 0
===============================================
===============================================
Default suite
Total tests run: 1, Failures: 1, Skips: 0
===============================================
[Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\toc.html
[Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
[Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\Default test.properties
[Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
[Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\index.html
[Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
[Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\main.html
[Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
[Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\groups.html
[Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
[Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\classes.html
[Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
[Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite
eporter-output.html
[Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
[Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\methods-not-run.html
[Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
[Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\testng.xml.html
[Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
[Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\index.html
[Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old exists: true
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@1b40d5f0: 176 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@47f37ef1: 433 ms
[Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\testng-failed.xml
[Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output exists: true
[Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\Default suite\testng-failed.xml
[Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\Default suite exists: true
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 43 ms
[Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\junitreports\TEST-demo.StartChrome.xml
[Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\junitreports exists: true
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@35bbe5e8: 129 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@7e0babb1: 145 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@75bd9247: 121 ms
Download latest chrome driver and put it in the Appium chrome driver location (replace the existing one) and try,
C:\Program Files (x86)\Appium
ode_modules\appium
ode_modules\appium-chromedriver\chromedriver\win\
hi please send link for how to take xpath in ui viewer
adb.exe not compatible with pdanet ... please provide steps to connect device to machine?
Yes even i faced same error.
kindly use latest version of pdanet and android
kindly use latest version of pdanet
Dear Sir,
I am getting below Exception
FAILED CONFIGURATION: @BeforeClass setUp
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 4.62 seconds
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
+Jayshrikant Shrivastava Restart jenkins and run again
+Mukesh otwani Sir this exception is realted to Appium / TestNg / Selenium ... I am not using jenkins at all !
Hi Mukesh, can you pls respond to my query below, I am facing below error
Audio sound is very low
Yes s Rekha, I had this issue earlier but now I fixed voice issue in recent videos.
Hello sir
I got the exception saying that SessionNotCreated.
How to resolve it. Pls help me.
Hi Deepak,
Please provide the full exception.
OK sir