how to check the dimensions of a website code example
Example: how to find the dimensions of a web page
Dimension initial_size = driver.manage().window().getSize();
int height = initial_size.getHeight();
int width = initial_size.getWidth();