Giter Club home page Giter Club logo

chrome_remote's People

Contributors

andrewhao avatar cavalle avatar ericmason avatar kars7e avatar simi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chrome_remote's Issues

Co-operation with Ferrum

Thanks for an awesome gem! ๐Ÿ…

Has there been any discussion between this gem and ferrum, about co-operation?

Both are good and seem to overlap, sometimes more can be achieved by joining forces.

Fix for chrome breaking changes

Please update your gem with changes. It need to replace GET request to PUT

  response = Net::HTTP.get(options[:host], path, options[:port])
  response = JSON.parse(response)

replace to this

  http = Net::HTTP.new(options[:host], options[:port])
  resp = http.send_request('PUT', path)      
  response = JSON.parse(resp.body)

overlay events

with
chrome.on "Overlay.inspectNodeRequested" do ...

I have to

loop do
  chrome.send_cmd "Overlay.enable"
  sleep 0.1
end

to get the events firing, is this a bug in this gem or is it just how the devtools protocol works?

stack level too deep

require "chrome_remote"

chrome = ChromeRemote.client
chrome.send_cmd "Fetch.enable"

chrome.on "Fetch.requestPaused" do |obj|
  chrome.send_cmd "Fetch.continueRequest", {
    requestId: obj["requestId"]
  }
end

chrome.listen

With the above code I eventually get: SystemStackError: stack level too deep

What am I doing wrong?

Page.addScriptToEvaluateOnNewDocument

How can I use 'Page.addScriptToEvaluateOnNewDocument' for all new opened tabs?
If switching to a new tab init user by click link. Or use one injection for all new opened tabs

Example in README does not work

Hi!

Thank you so much for creating this wonderful tool :)

I tried to execute the screenshot example, but unfortunately got an error when running the last line: File.write "screenshot.png", Base64.decode64(response["data"])

Error:
Encoding::UndefinedConversionError: "\x89" from ASCII-8BIT to UTF-8

Would you happen to know what's going on?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.