I am getting below error in appium inspector when I try to open appium inspector:
[sessionCapabilities()] Error response status: 6, Selenium error:
Session does not exist
Please note that my automation code is running successfully. I am trying to launch inspector while the script is running.I am using the same session id which is automatically generated in inspector while script is running.
I am using appium 1.2.3 desktop with server 1.7.1,Xcode-9,iOS-11,IPhone 7 Plus real device.
Can anyone help me on this?
try this out .. hopefully it may solve your problem
https://github.com/appium/appium-desktop/issues/308
Related
I am a newbie to Appium, recently i am trying to run my first appium test case, but getting below error:
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session.
I am using appium server 1.6.3 on localhost, and also i am using selenium server 3.4.0 and appium java client version java-client-5.0.0-BETA7.
Please help me out to resolve this issue.
Thanks in advance
Several notes:
avoid using beta builds when you start with new open-source tool
Appium already includes specific selenium version, so by setting it yourself you may get incompatibility issue.
Try with appium stable appium server v1.7.2 and java client v5.0.4
Following is the link to my code and error sin appium console
and eclipse console:
Link to the code and error in eclipse console and appium console
If you check the Appium logs, it has this line in there -
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : version
This means that version is not the correct property name. You have to change it to platformVersion. Try changing it and see it it works. The line of code would be like this -
capabilities.setCapability("platformVersion", "7.0");
Also, there is no need to provide the browser name, as you are not using it anywhere. But that shouldn't affect the test script execution in any way.
You can also check this article which shows the capabilities you can use to launch an app - Appium Script to Launch App
I have installed appium Version 1.4.13 (Draco).
In the appium iOS configuration provided the following details
a. app path /Users/mac/Documents/testing/automationTesting.app
b. Force device iphone6,
3. platform version 8.2
4. unchecked the UDID and bundle ID. The .app was generated using Xcode ver 7.0.1
After launching the appium and getting the response code 200, i tried to launch the inspector and it gets launched successfully.
I see the below debug info on the appium console
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"}}}
info: <-- GET /wd/hub/status 200 1.036 ms - 105 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"}}}
Where as no images are getting loaded in the inspector and also the iOS simulator which was running before gets disappeared.
I have also looked into the below stack over flow urls and ensured that the steps are followed
Appium Inspector not able to load image
appium inspector not running on mac
Any inputs/suggestions would be of help
Option 1:
Instead of simulator i tried to configure the appium to run on the device by providing the UDID and bundle ID. I was able to launch the inspector successfully and get the UI elements values required for automation.
Option 2: I had upgraded the xcode to the latest version and it started launching the inspector in the simulator mode itself.
I have installed appium version 1.3.3.
I have launched appium server to inspect an ios app.
I have attached the screen shot for reference.
I am getting the below mentioned error message.
Try getting the test app on your simulator with the Xcode, and then running Appium inspector. It would eliminate if issue was caused due to Instrument not being able to communicate with device
Am trying to run appium tool for testing apps. While starting appium server i finished all setting right way. When appium running the app will start at time but suddently it get crash.
Yes.Am using Xcode 6.0 and Appium 1.3.4
Make sure the .app file you are using is build for simulator if you are running appium for simulator and a different build i.e the build for device if you want to run it into real device....This is one of the cause which causes the instruments to crash at start up.
When I create an new project with XCode then generate the app file, it is working fine - I can open the inspector.
But I have a problem when I use an already developed application and the build is coming from a developer profile : I can't open the inspector and instruments crash on startup.
While running the script please start xcode and go in the settings of the mobile device and find developer options. Make sure UIAutomation is enabled there. If it is not then enable it and after it try to run the script again. Surely it will work.