thoughtbot/capybara-webkit — Issue #251: Warning messages on running :js enabled rspec tests with capybara-webkit
Author: centaure
Created: 2012-01-23 19:12:02+00:00
State: open

On running the following rspec tests with javascript enabled:

context "on clicking command and conquer tag link", :js => true, :driver => :webkit do

it "should be in root path" do
click_link('command and conquer')
current_path.should == root_path
end

end

I get: the following warnings (and although the tests eventually succeeds, it does stall for a few seconds after the message "on clicking command and conquer tag link" and while it outputs the messages; "No bp log location saved, using default." etc):

on clicking command and conquer tag link
No bp log location saved, using default.
[000:000] Browser XEmbed support present: 1
[000:000] Browser toolkit is not Gtk2 (0).
[000:001] Using Xt toolkit
** (:32057): DEBUG: NP_Initialize
** (:32057): DEBUG: NP_Initialize succeeded
** (:32057): DEBUG: NP_Initialize
** (:32057): DEBUG: NP_Initialize succeeded
** (:32057): DEBUG: NP_Initialize
** (:32057): DEBUG: NP_Initialize succeeded
** (:32057): DEBUG: NP_Initialize
** (:32057): DEBUG: NP_Initialize succeeded
should be in root path

The only thing extra for my javascript enabled rspec tests are the gems (i) capybara-webkit 0.8.0 and (ii) databasecleaner. I am running on Ubuntu 10.

Is there anything I can do to prevent these warnings from showing up? And what is "bp log"?

FYI: When I run with :driver => :selenium, I get no such warnings (i.e. Selenium loads up my firefox browser and the tests go through without warnings). The delay time for the above webkit temporary "stall" and selenium loading the browser is about the same.