Closed glomotion closed 2 years ago
Yeah, that's because we don't have to start/stop the webdriver server anymore, it's done automatically by selenium-webdriver. For your purpose, you should use the new programmatic API that was added in v2 alpha-3 and updated in alpha-4.
But this is a pretty cool feature, if you manage to get it working properly, we can add it as an enhancement, if other people will use it.
This issue has been automatically marked as stale because it has not had any recent activity. If possible, please retry using the latest Nightwatch version and update the issue with any relevant details. If no further activity occurs, it will be closed. Thank you for your contribution.
Describe the bug
So we're trying to work out how to write a simple watch function for nightwatch, to speed up test development... It looks like some methods have been removed / changed, since v2 alpha... :(
simple watch.js
Run with command
Verbose output
Configuration
nightwatch.json
```js const path = require('path'); const firefox = require('selenium-webdriver/firefox'); const capabilities = new firefox.Options(); capabilities.addExtensions(path.resolve(__dirname, 'metamask-10.2.2-an+fx.xpi')); module.exports = { src_folders: ['src/tests'], page_objects_path: ['src/pages'], custom_commands_path: ['src/custom-commands'], test_settings: { default: { capabilities, webdriver: { start_process: true, server_path: require('geckodriver').path, // cli_args: ['--verbose'], }, }, }, }; ```
Your Environment
Executable
nightwatch --version
npm --version
node --version
Browser drivers
OS
macOS BigSur