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

Commit

Permalink
wait until visible
Browse files Browse the repository at this point in the history
  • Loading branch information
odalys-dataport committed Jun 3, 2024
1 parent e4c591d commit 028329f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion page-objects/pages/coursePages/CRSSCourseListPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ function getColourSelector (colourName) {
}

async function setCourseNameIntoSearchInputField (courseName) {
await elementHelpers.moveToElement(searchCourseField)
await waitHelpers.waitAndSetValue(searchCourseField, courseName)
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/helpers/waitHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ async function waitUntilScriptResultIsTrue (script, timeoutMsg, timeout = pageLo
}

async function waitAndSetValue (selectorOrElement, value, pause = 200) {
// await waitUntilElementIsVisible(selectorOrElement);
await waitUntilElementIsVisible(selectorOrElement);
const element = await waitUntilElementIsEnabled(selectorOrElement)
await element.clearValue()
await element.click()
Expand Down

0 comments on commit 028329f

Please sign in to comment.