Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
Update setSearchBoxValue.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrugg authored Nov 20, 2019
1 parent 1acc1ec commit 2d232b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helpers/setSearchBoxValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ browser.addCommand('setSearchBoxValue', async (value: string) => {
await searchBox.scrollIntoView();

// clear the searchBox
await resetButton.click();
if (resetButton.isDisplayed()) {
await resetButton.click();
}

// In Internet Explorer the input must be focused before updating its value
await searchBox.click();
Expand Down

0 comments on commit 2d232b3

Please sign in to comment.