Appium 1.9.1 Released


#1

Appium 1.9.1 is a patch release. Next version will likely not support Xcode 8

General

  • Append the current session identifier to the protocol name prefix in server logs
  • Fix the way current protocol is determined from execute response

iOS

  • Support Xcode 10 and iOS 12.0
  • Add a possibility to set container type for Simulator while pushing/pulling files
  • Fix W3C format handling by receiveAsyncResponse command
  • Fix iPhone X Simulator screen recording

Android

  • Fix getStrings for no app
  • Fix screen recording bug
  • Return the current geolocation from getGeoLocation
  • Add mobile:mobileGetDeviceInfo command (UiAutomator2 only)
  • Make ‘by tag name’ selector compatible with View Tag selector (Espresso only)
  • Convert mouse action events to touch actions (Espresso only)

Windows

  • Add more support for W3C Actions API
    • Support pointer input methods: up, down and move
    • Add advanced modifier attributes to ‘touch’ inputs: pressure, twist, width, height
    • Add advanced modifier attributes to ‘pen’ inputs: pressure, twist, tilt x and y, eraser, barrel button
    • Support interpolation for ‘pen’ and ‘multitouch’

pinned globally #2

#3

Have any change related to the config Capabilities? Cannot start apps after upgrade to 1.9.1


#4

What is the error? Share the error logs


#5

Dear Team,

I am having Appium Desktop v1.9.0. Appium Java Client v6.1.0.

I am getting error.

capabilities.setCapability(“deviceName”, “”);
capabilities.setCapability(“udid”, “”);
capabilities.setCapability(“platformName”, “Android”);
capabilities.setCapability(“platformVersion”, “6.0”);
capabilities.setCapability(“browserName”, “Chrome”);
capabilities.setCapability(“noReset”, true);

What is wrong here

org.openqa.selenium.WebDriverException: It is impossible to create a new session because ‘createSession’ which takes HttpClient, InputStream and long was not found or it is not accessible
Build info: version: ‘3.14.0’, revision: ‘aacccce0’, time: ‘2018-08-02T20:19:58.91Z’
Driver info: driver.version: AppiumDriver
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:195)
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:209)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:231)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:212)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:130)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:84)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:94)
at com.artm.automation.TestVideoAdAndroidMain.main(TestVideoAdAndroidMain.java:72)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:185)
… 11 more
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: The desired capabilities must include either ‘appPackage’ or ‘browserName’

remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: The desired capabilities must include either ‘appPackage’ or ‘browserName’
at getResponseForW3CError (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:824:9)
at asyncHandler$ (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:375:37)
at tryCatch (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$new$0(W3CHandshakeResponse.java:57)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction$2(W3CHandshakeResponse.java:104)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:122)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at java.base/java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)
at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:543)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:125)
… 16 more


#6

Hi,

Yes appium tells correct only. Where is the device name and app path/appPackage and appActivity in your capabilities?

use like this,

method 1:

capabilities.setCapability(“deviceName”, “your real device name/emulator name”);
capabilities.setCapability(“platformName”, “Android”);
capabilities.setCapability(“platformVersion”, “6.0”);
capabilities.setCapability(“browserName”, “Chrome”);
capabilities.setCapability(“fullReset”, false);
capabilities.setCapability(“noReset”, true);
capabilities.setCapability(“app”, “your app path”);

Method 2:

capabilities.setCapability(“deviceName”, “your real device name/emulator name”);
capabilities.setCapability(“platformName”, “Android”);
capabilities.setCapability(“platformVersion”, “6.0”);
capabilities.setCapability(“browserName”, “Chrome”);
capabilities.setCapability(“appPackage”, “your app package here”);
capabilities.setCapability(“appActivity”, “your app activity here”);
capabilities.setCapability(“fullReset”, false);
capabilities.setCapability(“noReset”, true);

let me know if you still getting issue.

Thanks,
Srini


#7

For method 2; It will give an error
“The desired should not include both of an ‘appPackage’ and a ‘browserName’” .

Added to that is there a way we could know which appium is installed in server machine by some API ?


#8

I have the same issue :frowning:


#9

Hi,

I am trying to launch the control center from iphone 7 using appium 1.9.1 and java client 5.0.4 (as we have dependancy on 5.0.4).
Have been trying with all the combinations, there are no errors in the code however, i am not able to launch it.
Could someone help me for a solution.

Thanks a lot.