Skip to content

Landscape / portrait rotation isn't working anymore? #14

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
pkastner opened this issue May 5, 2014 · 2 comments
Closed

Landscape / portrait rotation isn't working anymore? #14

pkastner opened this issue May 5, 2014 · 2 comments

Comments

@pkastner
Copy link

pkastner commented May 5, 2014

Seems like the device rotation is broken? (using this method)

May 05, 2014 2:09:37 PM org.openqa.selenium.remote.Augmenter extractRemoteWebDriver
WARNING: Augmenter should be applied to RemoteWebDriver instances or previously augmented instances only
java.lang.ClassCastException: io.appium.java_client.AppiumDriver cannot be cast to org.openqa.selenium.Rotatable
    at com.dynatrace.acceptanceFW.HomeScreenNavigationTest.basicHomeScreenNavigationTest(HomeScreenNavigationTest.java:53)

See also: https://groups.google.com/forum/#!topic/appium-discuss/DrvbMoVWBJs

Kind regards,
Philipp

@pkastner pkastner changed the title Landscape /Portrait rotation is not working anymore? Landscape / portrait rotation isn't working anymore? May 5, 2014
@Jonahss
Copy link
Member

Jonahss commented May 5, 2014

Aha, thanks for pointing it out.

Jonahss added a commit to Jonahss/java-client that referenced this issue May 5, 2014
@Jonahss
Copy link
Member

Jonahss commented May 5, 2014

Okay, now AppiumDriver will implement Rotatable, so all you need to do is call:

driver.rotate(orientation);
driver.getOrientation();

Will publish as part of version 1.1.0 by end of today.

@Jonahss Jonahss closed this as completed in 8d7bfa2 May 6, 2014
Jonahss added a commit that referenced this issue May 6, 2014
AppiumDriver now implements Rotatable. Fixes #14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants