- Joined
- Jan 20, 2025
- Messages
- 1
- Reaction score
- 0
Greetings. I would like to ask if it is possible to use node js modules in a wdio file.
Because when I write require('fs') in the file with tests I get this error:
Because when I write require('fs') in the file with tests I get this error:
Unable to load spec files quite likely because they rely on `browser` object that is not fully initialized.
`browser` object has only `capabilities` and some flags like `isMobile`.
Helper files that use other `browser` commands have to be moved to `before` hook.