Update an example test

This commit is contained in:
Michael Mintz 2022-01-27 01:45:34 -05:00
parent 835621dac2
commit 67d5d35804
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ class DialogBoxTests(BaseCase):
message = "<b>This is the SeleniumBase Docs website!</b><br /><br />"
message += "What would you like to search for?<br />"
text = self.get_jqc_text_input(message, ["Search"])
self.update_text('input[aria-label="Search"]', text + "\n")
self.type('input[aria-label="Search"]', text + "\n")
self.wait_for_ready_state_complete()
self.set_jqc_theme("bootstrap", color="red", width="32%")
if self.is_text_visible("No matching documents", ".md-search-result"):
@ -103,7 +103,7 @@ class DialogBoxTests(BaseCase):
self.open("https://store.xkcd.com/search")
else:
self.open("https://en.wikipedia.org/wiki/Special:Search")
self.highlight_update_text('input[id*="search"]', text + "\n")
self.highlight_type('input[id*="search"]', text + "\n")
self.wait_for_ready_state_complete()
self.sleep(1)
self.highlight("body")