I attempted to use the following code:
WebDriver driver = new FirefoxDriver();
driver.get("http://google.com/");
Point position = driver.manage().window().getPosition();
System.out.println(position);
System.out.println(position.getX());
System.out.println(position.getY());
Unfortunately, I encountered the following error:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Type mismatch: cannot convert from org.openqa.selenium.Point to java.awt.Point
at Inbox.XandYaxisofbrowser.main(XandYaxisofbrowser.java:14)