-
-
Save angiejones/79844b19d8fd0eec81fb5d0c71b1967b to your computer and use it in GitHub Desktop.
Playwright - enter text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SearchPage { | |
private Page page; | |
private String locator_searchBar = "#searchBar"; | |
public SearchPage(Page page){ | |
this.page = page; | |
} | |
public void search(String query) { | |
page.fill(locator_searchBar, query); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment