Can you help me with the code for changing the device orientation of the mobile device between the test execution?

Can you help me with the code for changing the device orientation of the mobile device between the test execution?

Hi Mark,

Here is the code for changing the device orientation of the mobile device between the test execution:

driver.rotate(ScreenOrientation.LANDSCAPE);