Implementing an extension for the WebElement object to set the element attribute values