I'm testing the Javascript part of the UI using rspec webdriver (describe "when blah", js: true do) and have the tests running automatically with autotest. The problem is that the browser opens with focus disrupting my work. How can I make it open the browser in an unobtrusive way? In case it helps I'm running Linux.
Add a comment
|
1 Answer
I solved this by ditching WebDriver and using Poltergeist:
Poltergeist is a driver for Capybara. It allows you to run your Capybara tests on a headless WebKit browser, provided by PhantomJS.