jfirebaugh / capybara-firebug Goto Github PK
View Code? Open in Web Editor NEWProvides a dead-simple way to run scenarios with Firebug enabled under the selenium driver
License: Other
Provides a dead-simple way to run scenarios with Firebug enabled under the selenium driver
License: Other
Hi,
it doesn't work with Firebug 1.11, Firebug simply doesn't show up.
what I could try?
thanks!
Is there anyway I can use firebug on selenium-webdriver with acceptance testing? I am using steak for acceptance testing.
In order to use the gem, we had to add the following to our spec_helper.rb.
Perhaps this should be added to the readme documentation?
RSpec.configure do |config|
config.before(:each, firebug: true) do
Capybara.current_driver = :selenium_with_firebug
end
end
Then stop and let me debug # capybara-firebug-0.0.7/lib/capybara/firebug.rb:43 no such file to load -- ruby-debug (LoadError)
I think specifying dependencies in .gemspec will fix this
I tried it out and changed 1 scenario to @firebug from @javascript, and I suddenly saw many errors like this (even on other scenarios).
execution expired (Timeout::Error)
/home/ramon/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/timeout.rb:64:in `rbuf_fill'
/home/ramon/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
/home/ramon/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
/home/ramon/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/protocol.rb:126:in `readline'
/home/ramon/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/http.rb:2028:in `read_status_line'
/home/ramon/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/http.rb:2017:in `read_new'
/home/ramon/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/http.rb:1051:in `request'
/home/ramon/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/http.rb:1037:in `request'
/home/ramon/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/http.rb:543:in `start'
/home/ramon/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/http.rb:1035:in `request'
./features/step_definitions/web_steps.rb:20:in `/^(?:|I )am on (.+)$/'
features/manage_pages.feature:115:in `Given I have a site "Fancake", and I am the moderator "bob"'
I am using selenium with a remote browser (cucumber is executed remotely, and the browser triggered is on my desktop). How can I get this to work when it is triggering a remote browser? Here's what I've got in my env.rb:
# Capybara configuration (using Selenium)
require 'capybara'
require 'capybara/dsl'
require 'capybara/cucumber'
require 'capybara/firebug'
Capybara.default_driver = :selenium
Capybara.javascript_driver = :selenium
Capybara.run_server = false
#Capybara.app_host = "https://google.com" # this is replaced in my Before hook
Capybara.register_driver :selenium do |app|
Capybara::Driver::Selenium.new(app,
:browser => :remote,
:url => "http://my.ip.add.ress:4444/wd/hub",
:desired_capabilities => :firefox)
end
World(Capybara)
Hey there
When I have tagged a scenario with @firebug and then I run cucumber, then it takes way longer until Firefox is started. Isn't there any way to speed things up?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.