Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
chore: Update selector for Wikipedia search button
Browse files Browse the repository at this point in the history
This commit changes the selector for the search button on the Wikipedia page. An adjustment was made to directly select the child button in the search form, improving selection accuracy and preventing potential errors.
  • Loading branch information
SchulteMarkus committed Jan 29, 2024
1 parent 41b0cad commit 31c325e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ class WikipediaPage extends Page {

static content = {
searchField { $("#searchInput") }
searchButton(to: WikipediaResultsPage) { $("#searchform button") }
searchButton(to: WikipediaResultsPage) { $("#searchform > button") }
}

void search(String searchTerm) {
searchField.value searchTerm
searchButton.click()
Expand Down

0 comments on commit 31c325e

Please sign in to comment.