Ask for Help
“I am trying to use the Headless gem to run my selenium tests via an xvfb session on an ubuntu machine. The xvfb session is being launched correctly on display port 99 screen 0 but I am getting the following error from selenium:”
18:08:31.410 ERROR - Failed to start new browser session, shutdown browser and clear all session data org.openqa.selenium.server.RemoteCommandException: timed out waiting for window 'null' to appear
“here is how I am running Headless:”
require 'headless'
headless = Headless.new
puts "starting Headless session on display: #{headless.display}"
headless.start
begin
puts "rake spec:integration"
Rake::Task['spec:integration'].execute
ensure
puts "stopping Headless"
headless.destroy
end
Has anybody out there had any luck with this?
Interesting Things
- Using Sunspot with Rails 3 and its rake tasks running a little slow?
- Adding require ‘sunspot/rails/tasks’ to your Rakefile sounds like a great idea, but a couple of pivots found out that it can unintentionally cause Sunspot to index twice when the rake task was run.
- The core issue is that Rails 3 automatically finds the rake tasks when the gem is included in your bundle.
- It’s the Year of the Rabbit!