@Test
public void checkWebElementGetAttributeReturnsCorrectCode() {

    assertThat(driver.findElement(locator).getAttribute("href"), is(equalTo("driver.findElement(" + locator + ").getAttribute(\"href\")")));
}