Skip to content

v2: Failed to start the session if SupportsOrientationOption is set  #1685

@alei01

Description

@alei01

The problem

Failed to start the session if SupportsOrientationOption is set.

Exception:
2022-04-13 09:12:21:016 - [Appium] Could not parse W3C capabilities: 'orientation' landscape is not included in the list

Environment

  • Appium version (or git revision) that exhibits the issue: beta-30
  • Last Appium version that did not exhibit the issue (if applicable): -
  • Desktop OS/version used to run Appium: MacOS 12.2.1 (21D62)
  • Node.js version (unless using Appium.app|exe): v17.8.0
  • Npm or Yarn package manager: npm
  • Mobile platform/version under test: iOS/Android
  • Real device or emulator/simulator: real/simulator
  • Appium CLI or Appium.app|exe: cli
  • java-client verstion: 8.0.0

Details

Setting the SupportsOrientationOption causes session creation fail.
Options example:

    private XCUITestOptions withOptions() {
        new XCUITestOptions()
                .setApp("app")
                .setOrientation(ScreenOrientation.LANDSCAPE)
...

Link to Appium logs

log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions