diff --git a/packages/nuxeo-web-ui-ftest/pages/helpers.js b/packages/nuxeo-web-ui-ftest/pages/helpers.js index b70cdfad20..526aa36694 100644 --- a/packages/nuxeo-web-ui-ftest/pages/helpers.js +++ b/packages/nuxeo-web-ui-ftest/pages/helpers.js @@ -16,7 +16,9 @@ const url = async (...args) => { }; const clickActionMenu = async (menu, selector) => { + await menu.waitForExist(selector); const action = await menu.$(selector); + await action.waitForExist(); if ((await action.getAttribute('show-label')) !== null) { // if the element is inside the dropdown, we need to expand it const myButton = await menu.$('#dropdownButton');