Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Clarify how to enable the debug mode in the readme #283

Closed
wants to merge 1 commit into from

2 participants

@cibernox

I would like to clarify how to enable the debug mode.
At first was adding a :inspector => true meta tag to my examples.
I've found the answer in this issue
#47

At least one person more made the same mistake, so maybe its useful.

@cibernox cibernox Clarify how to enable the debug mode in the readme
I would like to clarify how to enable the debug mode.
At first was adding a :inspector => true meta tag to my examples.
I've found the answer in this issue
teampoltergeist#47

At least one person more made the same mistake, so maybe its useful.
1204034
@jonleighton jonleighton commented on the diff
README.md
@@ -138,6 +138,18 @@ When this option is enabled, you can insert `page.driver.debug` into
your tests to pause the test and launch a browser which gives you the
WebKit inspector to view your test run with.
+You can register this debugger driver with a different name and set it
+as the current javascript driver. By example, in your herlper file:
@jonleighton Owner

Typo here :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@cibernox

I sen't this pull request from the online file editor of github. Actually I don't know what happened, but when I fixed the typo the existing pull request was not updated, and now I've sent a pull request that duplicates this one.

#283 is the newest one. I close this one.

@cibernox cibernox closed this
@cibernox cibernox deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 22, 2013
  1. @cibernox

    Clarify how to enable the debug mode in the readme

    cibernox authored
    I would like to clarify how to enable the debug mode.
    At first was adding a :inspector => true meta tag to my examples.
    I've found the answer in this issue
    teampoltergeist#47
    
    At least one person more made the same mistake, so maybe its useful.
This page is out of date. Refresh to see the latest.
Showing with 12 additions and 0 deletions.
  1. +12 −0 README.md
View
12 README.md
@@ -138,6 +138,18 @@ When this option is enabled, you can insert `page.driver.debug` into
your tests to pause the test and launch a browser which gives you the
WebKit inspector to view your test run with.
+You can register this debugger driver with a different name and set it
+as the current javascript driver. By example, in your herlper file:
@jonleighton Owner

Typo here :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+
+```ruby
+Capybara.register_driver :poltergeist_debug do |app|
+ Capybara::Poltergeist::Driver.new(app, :inspector => true)
+end
+
+# Capybara.javascript_driver = :poltergeist
+Capybara.javascript_driver = :poltergeist_debug
+```
+
[Read more
here](http://jonathanleighton.com/articles/2012/poltergeist-0-6-0/)
Something went wrong with that request. Please try again.