Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
expand the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yob committed May 2, 2012
1 parent 1986622 commit fec4247
Showing 1 changed file with 42 additions and 5 deletions.
47 changes: 42 additions & 5 deletions README.md
@@ -1,10 +1,47 @@
# Testify
# Chrome Debugger

## Wat.

Ever wanted to capture stats (#requests, onload time, etc.) about the state of your frontend? Me too!
Testify uses the remote debugging protocol in Chrome to do just that!
Ever wanted to capture stats (#requests, onload time, etc.) about the state of your frontend? Us too!
Chrome Debugger uses the remote debugging protocol in Chrome to do just that!

Intended to be a used in a post-deploy or CI step.

Yay-hooray!

## Installation

gem install chrome_debugger

## Extra Requirements

Chrome 18 or higher must be installed and available on the path.

## Usage

require 'chrome_debugger'

ChromeDebugger::Client.open do |chrome|
document = chrome.load_url("https://theconversation.edu.au/")

puts "requests: #{document.request_count}"
puts "onload_event: #{document.onload_event}"
puts "dom_content_event: #{document.dom_content_event}"
puts "document_payload: #{document.encoded_bytes("Document")}"
puts "script_payload: #{document.encoded_bytes("Script")}"
puts "image_payload: #{document.encoded_bytes("Image")}"
end

Refer to the ChromeDebugger::Client and ChromeDebugger::Document for detailed
docs.

ChromeDebugger::Client starts and manages a new chrome session.

ChromeDebugger::Document provides an entry point for querying the results of
a page load.

## Authors

Justin Morris
justin.morris@theconversation.edu.au

James Healy
james.healy@theconversation.edu.au

0 comments on commit fec4247

Please sign in to comment.