Yes i have import import org.openqa.selenium.*;
Code is like:-
public void performOrientation() throws InterruptedException
{
System.out.println("Current screen orientation Is : " + driver.getOrientation());
driver.rotate(org.openqa.selenium.ScreenOrientation.LANDSCAPE);
System.out.println("Now screen orientation Is : "+ driver.getOrientation());
Thread.sleep(5000);
System.out.println("Changing screen Orientation to PORTRAIT.");
driver.rotate(org.openqa.selenium.ScreenOrientation.PORTRAIT);
System.out.println("Now screen orientation Is : "+ driver.getOrientation());
Thread.sleep(5000);
}
I have getting following error . Please help i am just stuck in it.
[TestNG] Running:
C:\Users\prabu\AppData\Local\Temp\testng-eclipse-1354138621\testng-customsuite.xml
Current screen orientation Is : PORTRAIT
FAILED: performOrientation
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 2.06 seconds...........