Skip to content

Commit

Permalink
fix: sleep before performing login, fixes #301 (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo authored Nov 30, 2023
1 parent 8d2f6a2 commit db7a414
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
public class LoginFormElement extends TestBenchElement {

public void login(String username, String password) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
}
waitUntil(ExpectedConditions.presenceOfElementLocated(By.id("vaadinLoginUsername")));

$(TextFieldElement.class).id("vaadinLoginUsername")
Expand Down

0 comments on commit db7a414

Please sign in to comment.