dimensions

How to get the Width and Height of Images or Elements using selenium webdriver

package SeleniumLearn.COM;
import org.openqa.selenium.By;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.AfterTest;
public class ImageWidhtandHeight {
        public WebDriver driver;
     @Test
                public void WidthandHight() throws Exception {

Subscribe to RSS - dimensions