You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 17, 2019. It is now read-only.
I'm not sure about irb, but you totally can with pry, a nice irb alternative. If you add gem "pry" to your gemfile (And bundle update and all that good stuff) you could create an additional step definition file (called here debug.rb):
# in features/step_definitions/debug.rbWhen/I debug/dorequire"pry"binding.pryend
Then, when you include I Debug in a scenario:
Feature: Navigating somewhere@sauceScenario: Going to rubygems.orgWhen I debug
And run your tests using bundle exec cucumber, you'll be dropped into a Pry console 'inside' the debug step definition. Which means that any additional methods or World setup you've done will be available.
All the Capybara methods will be available, including the page object (Which most of the other methods are delegated too). If this is the first line in the Scenario, and so there isn't a Sauce session created yet, the first Capybara DSL method you call will create one.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
can i run an irb console and query for web page elements?
The text was updated successfully, but these errors were encountered: