开发者

rspec+capybara+selenium+spork not closing browser

The same problem with rails tests as here, but on Mac OS X.

And when I start specs next time, they hang on js specs until I close the browser manually. And those tests fail, I 开发者_Go百科need to restart specs again.

What's the solution here?


https://github.com/timcharper/spork/issues/144

1) [optional] to close only my processes

cp /Applications/Firefox.app/Contents/MacOS/firefox-bin /Applications/Firefox.app/Contents/MacOS/firefox-bin-selenium

Selenium::WebDriver::Firefox.path = "/Applications/Firefox.app/Contents/MacOS/firefox-bin-selenium"

2)

Spork.each_run do
\`killall firefox-bin-selenium\`
end
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜