public void fillForm(Contact contact) { name.getWebElement().clear(); lastName.getWebElement().clear(); description.getWebElement().clear(); name.getWebElement().sendKeys(contact.name); lastName.getWebElement().sendKeys(contact.lastName); description.getWebElement().sendKeys(contact.description); }
public List<String> getFormValue() { return Arrays.asList( name.getWebElement().getAttribute("value"), lastName.getWebElement().getAttribute("value"), description.getWebElement().getAttribute("value")); }