Giter Site home page Giter Site logo

Comments (1)

jlipps avatar jlipps commented on September 18, 2024
info HTTP --> POST /session/168c05fb-07b7-4fb9-9662-91c298793ff2/orientation
info HTTP {"orientation":"LANDSCAPE"}
[AndroidUiautomator2Driver@ed66 (168c05fb)] Driver proxy active, passing request on via HTTP proxy
[debug] [AndroidUiautomator2Driver@ed66 (168c05fb)] Matched '/session/168c05fb-07b7-4fb9-9662-91c298793ff2/orientation' to command name 'setOrientation'
[debug] [AndroidUiautomator2Driver@ed66 (168c05fb)] Proxying [POST /session/168c05fb-07b7-4fb9-9662-91c298793ff2/orientation] to [POST http://127.0.0.1:8200/session/fadb01d6-b839-4585-b967-7f787041f17e/orientation] with body: {"orientation":"LANDSCAPE"}
[AndroidUiautomator2Driver@ed66 (168c05fb)] Got response with status 400: {"sessionId":"fadb01d6-b839-4585-b967-7f787041f17e","value":{"error":"invalid element state","message":"Screen rotation cannot be changed to ROTATION_270 after 2000ms. Is it locked programmatically?","stacktrace":"io.appium.uiautomator2.common.exceptions.InvalidElementStateException: Screen rotation cannot be changed to ROTATION_270 after 2000ms. Is it locked programmatically?\n\tat io.appium.uiautomator2.model.internal.CustomUiDevice.setRotationSync(CustomUiDevice.java:195)\n\tat io.appium.uiautomator2.handler.SetOrientation.safeHandle(SetOrientation.java:41)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:59)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:267)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:261)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:68)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandle...
[debug] [W3C] Matched W3C error code 'invalid element state' to InvalidElementStateError
info HTTP <-- POST /session/168c05fb-07b7-4fb9-9662-91c298793ff2/orientation 400 2094 ms - 3926

Notice that the log lines mention this command is being handled by the UiAutomator2 driver? That means this issue doesn't have anything to do with this plugin. Unless you can show that the orientation setting works correctly when the plugin is not used, it's best to report the issue to the UiAutomator2 driver repo instead.

from appium-altunity-plugin.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.