jnicklas/capybara — Issue #624: Warning messages on running :js enabled rspec tests with capybara-webkit
Author: centaure
Created: 2012-01-23 11:27:24+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):

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.