ferrum
ferrum copied to clipboard
Headless Chrome Ruby API
Chrome allows to specify file scheme to an URL. When a non-existent file is specified, Chrome returns `ERR_CONNECTION_TIMED_OUT`. But `ferrum` doesn't handle that error. So in that case, an error...
``` test.rb: require "ferrum" browser = Ferrum::Browser.new browser.go_to("https://google.com") browser.screenshot(path: "google.png") browser.quit bundle exec ruby test.rb Traceback (most recent call last): 7: from test.rb:2:in `' 6: from test.rb:2:in `new' 5: from...
- Implement `Ferrum::Node#school_into_view` - Implement `Ferrum::Node#in_viewport?` - restore specs with context: `when the element is not in the viewport of parent element`
This commit passes the 'proxy-server' parameter to a remote Chrome instance (meaning passing a `:url` parameter) so that you can use something like the puffing-billy gem as a MITM proxy...
Hi, We've been using Cuprite for a long time, and in the last year or so we've started to see an increasing rate of failures for `DeadBrowserError` in our CI...
```ruby br = Ferrum::Browser.new # no matter :headless true or false br.evaluate "[innerHeight, outerHeight]" ``` The `innerHeight` is expected to be smaller than `outerHeight`: https://developer.mozilla.org/en-US/docs/Web/API/Window/innerHeight But in fact they are...
Today, to set a browser option, you need to: ```ruby Ferrum::Browser.new(browser_options: { 'no-sandbox': nil }) ``` This semantics can be misleading because, at least from my perspective, `nil` is associated...
Hello, I'm trying to intercept the response body of an XHR request. After looking through the spec files, I saw that Ferrum keeps track of all of the network traffic,...