@Component
public class LoginStepDefinitions
extends java.lang.Object
Constructor and Description |
---|
LoginStepDefinitions() |
Modifier and Type | Method and Description |
---|---|
void |
login(java.lang.String username,
java.lang.String password,
java.lang.String exists)
This code is supposed to populate the login dialog, but it actually doesn't work with most modern
browsers.
|
@When(value="I log in with username \"([^\"]*)\" and password \"([^\"]*)\"( if it exists)?$") public void login(java.lang.String username, java.lang.String password, java.lang.String exists)
username
- The usernamepassword
- The passwordexists
- If this text is set, an error that would be thrown because the element was not found is
ignored. Essentially setting this text makes this an optional statement.