No commit activity in last 3 years
No release in over 3 years
Ruby client library for the Google Chrome Remote Debugging Protocol.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

>= 0
 Project Readme

Chrome Remote Debug Build Status

Ruby client library for the Google Chrome Remote Debugging Protocol.

Requirements

  • ruby >= 1.8.7
  • *nix system (linux, mac os x, etc..), windows don't know.

Install

$> gem install chrome_remote_debug

Usage

Client Object

# Initalize the client. Does not really connect.
chrome = ChromeRemoteDebug::Client.new("127.0.0.1", 9222)
# Fetch a list of pages returned as Page objects.
chrome.pages

Page Object

# Get the first page in chrome
page = chrome.pages.first
# Title of the page
page.title
# Url of the page
page.url
# Favicon url of the page
page.favicon

# Refresh the page
page.reload
# Go to this url
page.navigate("http://www.google.com")

Done

  • Get page list
  • Page.reload
  • Page.navigate

Todo

  • All the rest of protocol v1.0

Author

License

  • MIT License
  • Copyright (c) 2012 Federico Galassi