- Make sure that the
selenium-webdriver
gem is installed:
$ gem install selenium-webdriver
- Start a chromedriver process in a separate terminal:
$ chromedriver --port=9515
- Begin an import session using the mabl CLI in a separate terminal:
$ mabl tests import --name "Ruby Import Example"
- Run the test in this directory:
$ ruby test.rb
- View/run/save the imported test in the terminal where you started the import:
In order to import your Selenium tests it is necessary to:
- Use a remote web driver process (e.g. start
chromedriver
or use Selenium Grid). - Modify your test to use a Selenium proxy at
localhost:8889
(see test.rb). - Start an import session in the mabl CLI (
mabl tests import...
). - Run your test
- Save your imported test using the mabl CLI.