Fixing calculation of viewport-related coordinates in FirefoxDriver