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.

/wd/hub/session/:sessionId/rotation implementation

See original GitHub issue

Implement endpoint /wd/hub/session/:sessionId/rotation in below drivers,

  • XCUITest/WDA
  • UIAutomator2
  • Legacy iOS Driver
  • Legacy android Driver

@sravanmedarapu @imurchie FYI

https://github.com/appium/appium-base-driver/blob/master/lib/mjsonwp/routes.js#L178

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
bootstraponlinecommented, Nov 1, 2016

It looks like Android supports quite a few different orientation modes.

android:screenOrientation=["unspecified" | "behind" |
                                     "landscape" | "portrait" |
                                     "reverseLandscape" | "reversePortrait" |
                                     "sensorLandscape" | "sensorPortrait" |
                                     "userLandscape" | "userPortrait" |
                                     "sensor" | "fullSensor" | "nosensor" |
                                     "user" | "fullUser" | "locked"]

and for getting:.

ROTATION_0
ROTATION_180
ROTATION_270
ROTATION_90

Appium is suppose to follow the mobile spec which is different from just exposing the native rotation primitives.

1reaction
TikhomirovSergeycommented, Oct 31, 2016

Yes. I think we need it for new modes (XCUITest/WDA, UIAutomator2) at least. It would be cool if old automation modes could support it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rotate - appium - Read the Docs
Rotate. Rotate the device in three dimensions. Example Usage. // Java driver.rotate(new DeviceRotation(10, 10, 10)); # Not supported
Read more >
Create a new session
Edit this Doc Create New Session. Create a new session. Example Usage ... new URL("http://127.0.0.1:4723/wd/hub"); IOSDriver driver = new IOSDriver(url, ...
Read more >
Selenium webdriver with Ruby : Use existing session id
I was able to solve this issue by using the following code patch. class RemoteWebDriver < Selenium::WebDriver::Driver def initialize(bridge) ...
Read more >
Rotate Orientation?
I got a chance to try that and get an error from appium for the iphone device. debug: Appium request initiated at /wd/hub/session/e0a704c6-e98d ......
Read more >
Get session details using Automate API
Use Automate REST API to get a list of sessions, information about each session, video logs, ... 2020-09-07 14:59:52:966 - [HTTP] --> POST...
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