diff --git a/test/functional/page_objects/settings_page.js b/test/functional/page_objects/settings_page.js index 163d3e089aa35..ce42b6e4dff35 100644 --- a/test/functional/page_objects/settings_page.js +++ b/test/functional/page_objects/settings_page.js @@ -75,8 +75,13 @@ export function SettingsPageProvider({ getService, getPageObjects }) { } async setAdvancedSettingsSelect(propertyName, propertyValue) { - await remote.setFindTimeout(defaultFindTimeout) - .findByCssSelector(`[data-test-subj="advancedSetting-editField-${propertyName}"] option[value="${propertyValue}"]`).click(); + let option; + await retry.try(async () => { + option = await remote.findByCssSelector( + `[data-test-subj="advancedSetting-editField-${propertyName}"] option[value="${propertyValue}"]` + ); + }); + await option.click(); await PageObjects.header.waitUntilLoadingHasFinished(); await testSubjects.click(`advancedSetting-saveEditField-${propertyName}`); await PageObjects.header.waitUntilLoadingHasFinished();