Sha256: 858c1685d0eac95ac8a24cf06469b8b519a163f9bb34cbdd2901ef5999cd5717

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

capybara-firebug provides a dead-simple way to run scenarios with Firebug
enabled under the selenium driver.

1. Install the gem
2. `require 'capybara/firebug'` in env.rb
3. Tag a scenario with `@firebug`
4. Run it

Firebug will be set up so that all features are fully enabled on every page.

You'll want to be able to pause the scenario at some point to inspect things
in Firebug. A step definition for `Then stop and let me debug` is provided
for this purpose. When executed, it breaks in the Ruby debugger.

## Using Firefox 4 and Firebug 1.7.0

If you want to use Firefox 4 with Firebug 1.7.0, configure the firebug_version
setting in your `capybara.rb` support file

    # located in features/support/capybara.rb or similar
    require 'capybara/firebug'
    Selenium::WebDriver::Firefox::Profile.firebug_version = '1.7.0'

## Customizing the Profile

If you wish to further customize the Firefox profile used by selenium, you
can use the `#enable_firebug` method to add the Firebug extension to it:

    profile = Selenium::WebDriver::Firefox::Profile.new
    profile.enable_firebug

This can also be used to enable Firebug on a remote browser:

    Capybara::Driver::Selenium.new(app,
       :browser => :remote,
       :url => "http://my.ip.add.ress:4444/wd/hub",
       :desired_capabilities => Selenium::WebDriver::Remote::Capabilities.firefox(:firefox_profile => profile))

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capybara-firebug-0.0.6 README.md
capybara-firebug-0.0.5 README.md