WebElementGenerator { public String getCssValue(String value) { return callingCommand + "(" + passedValue + ").getCssValue(\"" + value + "\")"; } 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 checkWebElementGetCSSValueReturnsCorrectCode() { assertThat(driver.findElement(locator).getCssValue("background-color"), is(equalTo("driver.findElement(" + locator + ").getCssValue(\"background-color\")"))); }