Skip to content

Commit

Permalink
add wait condition
Browse files Browse the repository at this point in the history
  • Loading branch information
abendt committed May 30, 2023
1 parent b1172a8 commit 52a7630
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package io.fluentlenium.examples.pages;

import static org.assertj.core.api.Assertions.assertThat;

import java.util.concurrent.TimeUnit;

import io.fluentlenium.core.FluentPage;
import io.fluentlenium.core.annotation.PageUrl;
import io.fluentlenium.core.domain.FluentWebElement;
import org.openqa.selenium.support.FindBy;

import java.util.concurrent.TimeUnit;

import static org.assertj.core.api.Assertions.assertThat;

@PageUrl("https://duckduckgo.com")
public class DuckDuckMainPage extends FluentPage {
private static final String SEARCH_FORM_HOMEPAGE = "#search_form_homepage";
Expand All @@ -20,6 +20,7 @@ public class DuckDuckMainPage extends FluentPage {
private FluentWebElement searchButton;

public DuckDuckMainPage typeSearchPhraseIn(String searchPhrase) {
await().until(searchInput).enabled();
searchInput.write(searchPhrase);
return this;
}
Expand Down

0 comments on commit 52a7630

Please sign in to comment.