v2: Failed to start the session if SupportsOrientationOption is set
See original GitHub issueThe 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
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.I’ve cleared all project caches and the issue is not reproducing now. The bug could be closed as fixed.