- Start Protractor's
webdriver-manager
in a separate terminal:
$ webdriver-manager start
- Begin an import session using the mabl CLI in a separate terminal:
$ mabl tests import --name "Protractor Import Example"
- Run the tests in this directory:
$ npm test
- View/run/save the imported test in the terminal where you started the import:
Only a single configuration change is required to make your Protractor tests compatible with mabl import. Add the following setting to your Protractor configuration file:
webDriverProxy: 'http://localhost:8889',
Then run your tests as you normally would with this configuration change applied:
- Start the Protractor webdriver manager
- Verify that your Protractor configuration file has
webDriverProxy: 'http://localhost:8889'
set - Start an import session in the mabl CLI (
mabl tests import...
). - Run your test (e.g.
npm test
). - Save your imported test using the mabl CLI.