From 028329f8c42eb5bc6c0a2b736613ca348aba2801 Mon Sep 17 00:00:00 2001 From: Odalys Adam Date: Mon, 3 Jun 2024 17:00:00 +0200 Subject: [PATCH] wait until visible --- page-objects/pages/coursePages/CRSSCourseListPage.js | 1 - runtime/helpers/waitHelpers.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/page-objects/pages/coursePages/CRSSCourseListPage.js b/page-objects/pages/coursePages/CRSSCourseListPage.js index 5e8d7e14..063c483b 100644 --- a/page-objects/pages/coursePages/CRSSCourseListPage.js +++ b/page-objects/pages/coursePages/CRSSCourseListPage.js @@ -106,7 +106,6 @@ function getColourSelector (colourName) { } async function setCourseNameIntoSearchInputField (courseName) { - await elementHelpers.moveToElement(searchCourseField) await waitHelpers.waitAndSetValue(searchCourseField, courseName) } diff --git a/runtime/helpers/waitHelpers.js b/runtime/helpers/waitHelpers.js index 5a6e9764..1e2701b3 100644 --- a/runtime/helpers/waitHelpers.js +++ b/runtime/helpers/waitHelpers.js @@ -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()