Skip to content

Commit

Permalink
[java] fix screen rotate error (#10693)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanjlii authored May 26, 2022
1 parent 9a43c53 commit bc1b4f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/src/org/openqa/selenium/remote/RemoteRotatable.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public ScreenOrientation getOrientation() {

@Override
public void rotate(DeviceRotation rotation) {
executeMethod.execute(DriverCommand.SET_SCREEN_ORIENTATION, rotation.parameters());
executeMethod.execute(DriverCommand.SET_SCREEN_ROTATION, rotation.parameters());
}

@Override
Expand Down

0 comments on commit bc1b4f0

Please sign in to comment.