java-client icon indicating copy to clipboard operation
java-client copied to clipboard

in W3C, is there any similar support as HasSessionDetails in JWP

Open helenren opened this issue 3 years ago • 2 comments

Description

In our test, we use HasSessionDetails to get some information related to the tested device, like device screen size and density for Android. While, when we switch from JSONWP to W3C, noticed that HasSessionDetails is JWP only. Wondering, is there any similar support in W3C that we can utilize?

Environment

  • Java client build version or git revision if you use some snapshot: 7.6
  • Appium server version or git revision if you use some snapshot: 1.17.1
  • Desktop OS/version used to run Appium if necessary: mac os
  • Mobile platform/version under test: Android
  • Real device or emulator/simulator: both

helenren avatar Apr 21 '22 21:04 helenren

Yes, it is not in W3C for now. A proposal to https://github.com/w3c/webdriver is needed.

As a workaround, you can define the endpoint with https://github.com/appium/java-client/blob/de3ded4d2c149cfa8ccf94d0618afd7b7e79e560/src/main/java/io/appium/java_client/AppiumDriver.java#L200 for now to appium.

KazuCocoa avatar Apr 21 '22 22:04 KazuCocoa

Thanks. Will try the workaround.

helenren avatar Apr 22 '22 00:04 helenren