### Question:
Image extends AbstractElement { public int getWidth() { try { return ((RemoteWebElement) getElement()).getSize().width; } catch (NumberFormatException e) { throw new WebElementException("Attribute " + WIDTH + " not found for Image " + getLocator(), e); } } Image(String locator);  Image(String locator, String controlName);  Image(ParentTraits parent, String locator);  Image(String locator, String controlName, ParentTraits parent); int getWidth(); int getHeight(); static final String WIDTH; static final String HEIGHT; }### Answer:
@Test(groups = { "browser-tests" }) @WebTest public void imageTestGetWidth() { Grid.driver().get(TestServerUtils.getTestEditableURL()); assertTrue((testImage.getWidth() == 41), "Validated GetWidth method"); AlertHandler.flushAllAlerts(); }