开发者

rspec+capybara+selenium+spork not closing browser

开发者 https://www.devze.com 2023-04-07 22:35 出处:网络
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 re

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

精彩评论

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

关注公众号