CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

Option to set default time for `waitForElement`

Open wjaros opened this issue 3 years ago • 3 comments

Instead of setting 5 seconds wait time for element each time when method is used, it would be nice to have possibility to set default value in the config.

wjaros avatar Aug 16 '22 11:08 wjaros

This works for me with Playwright. https://codecept.io/helpers/Playwright/#properties waitForTimeout ? default wait* timeout in ms. Default: 1000

mirao avatar Aug 20 '22 10:08 mirao

Not sure it's the timeout used for waitForElement @mirao

nicostubi avatar Aug 25 '22 17:08 nicostubi

It's a timeout for all waitFor* actions, e.g. https://github.com/codeceptjs/CodeceptJS/blob/3.x/lib/helper/Playwright.js#L2168

mirao avatar Aug 26 '22 09:08 mirao