Can capybara / webdriver be allowed to run firefox with minimal / unfocused?

Is it possible to stop Firefox from appearing when a cucumber falls into the @javascript tag? After some time, it becomes increasingly difficult to always break when performing tests.

It would be nice if webdriver were to start Firefox with minimal or no focus on it.

+5
source share
2 answers

WebDriver does not have an API, and this is not recommended, because Firefox does not fire certain events (for example, focus, blur) when the window is in the background. I usually get around this with a virtual machine (e.g. in VirtualBox) or a separate X-display.

+5
source

You can add the lines below to Info.plist from Firefox.app. After that, it will begin without focus capture.

<key>LSBackgroundOnly</key>
<string>1</string>
0
source

All Articles