how to get size of webelement in selenium code example
Example: how to find the size of a web page selenium
Dimension initial_size = driver.manage().window().getSize();
int height = initial_size.getHeight();
int width = initial_size.getWidth();