Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

PIVOTAL LABS
Standup 2/3/2011: It *is* the Rabbit!

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!

Comments
Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *