@InteractiveMethod public void invite(String eMail) { Actions a = new Actions(getWrappedDriver()); invite.getWrappedElement().click(); a.sendKeys(invite.getWrappedElement(), eMail, Keys.ENTER); a.perform(); }
@Step("Log in - {0}/{1}") public <T extends BasePage<T>> T login( String username, String password, Class<T> classOfExpectedPageObject) { usernameField.clear(); usernameField.sendKeys(username); passwordField.clear(); passwordField.sendKeys(password); loginButton.click(); return PageFactory.newInstance(classOfExpectedPageObject); }
public SearchResultsPage triggerSearch(String query) { searchField.sendKeys(query); searchBtn.click(); return new SearchResultsPage(); }