WebElementGenerator { public GetLocation getLocation() { return new GetLocation(); } WebElementGenerator(String command, String value);  WebElementGenerator(String command); String getAttribute(String value); String isSelected(); String isEnabled(); String getText(); String isDisplayed(); GetLocation getLocation(); GetSize getSize(); String click(); String getCssValue(String value); String sendKeys(String value); String submit(); String toString();  }
@Test public void checkWebElementGetLocationGetYReturnsCorrectCode() { assertThat(driver.findElement(locator).getLocation().getY(), is(equalTo("driver.findElement(" + locator + ").getLocation().getY()"))); }
@Test public void checkWebElementGetLocationGetXReturnsCorrectCode() { assertThat(driver.findElement(locator).getLocation().getX(), is(equalTo("driver.findElement(" + locator + ").getLocation().getX()"))); }