question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v2: Failed to start the session if SupportsOrientationOption is set

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Apr 13, 2022

It’s a java client issue. Appium only accepts orientation names passed in uppercase. You could use amend to add a proper value to options as a temporary workaround until the issue is fixed in java client.

0reactions
alei01commented, Apr 15, 2022

I’ve cleared all project caches and the issue is not reproducing now. The bug could be closed as fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to start the session: already started by PHP ...
Symfony2, by default, starts sessions for you automatically. There is no need of $session = new Session();. Try this,
Read more >
session_start - Manual - PHP
session_start() creates a session or resumes the current one based on a session identifier passed via a GET or POST request, or passed...
Read more >
[Resolved] A PHP session was created by a session_start()
I created a testing installation with only BoldGrid plugins installed/activated and did not see the error so hopefully it isn't one of ours,...
Read more >
How to Use Sessions and Session Variables in PHP - Code
In this post, you'll learn the basics of session handling in PHP. We'll start with an explanation of how sessions work and how...
Read more >
PHP - Sessions - Tutorialspoint
You don't need to call start_session() function to start a session when a user visits your site if you can set session.auto_start variable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found