cuprite icon indicating copy to clipboard operation
cuprite copied to clipboard

Headless Chrome/Chromium driver for Capybara

Results 82 cuprite issues
Sort by recently updated
recently updated
newest added

(I've done very little digging and maybe this should be posted to Ferrum) Using Ruby 3.x ```ruby require 'async' require 'benchmark' require 'capybara/dsl' require 'capybara/cuprite' include Capybara::DSL Capybara.javascript_driver = :cuprite...

In our test suite, we also test with mobile user agents. We do this by creating several different drivers with different user agents. Coming from Selenium, I was used to...

bug

Since for example this https://stackoverflow.com/a/45323528/322020 ```none .native.clear ``` throws: ```none NoMethodError (undefined method `clear' for #) ```

It now raises an error but a warning would be more appropriate, with optional mute

enhancement

I realized cuprite is not respecting the wait time on `find`, same as described here: https://github.com/rubycdp/cuprite/issues/122 Cuprite defines the following exceptions to be caught by capybara and allow retries: ```ruby...

`debug` method access the DevTools discovery page. But the page is deprecated now. ![Screenshot from 2021-09-03 10-24-32](https://user-images.githubusercontent.com/987638/131936521-52fd8c46-57e1-4f06-be9f-45ec0deffd7e.png) Ref: https://bugs.chromium.org/p/chromium/issues/detail?id=1232509 They suggest to use `chrome://inspect` instead. But, if my understanding is...

This PR aims to resolve two issues: 1. Intercepted requests [would](https://github.com/rubycdp/cuprite/blob/master/lib/capybara/cuprite/page.rb#L142) [always](https://github.com/rubycdp/cuprite/blob/master/lib/capybara/cuprite/page.rb#L146) be continued when a black or whitelist was used, regardless of if the [callback](https://github.com/rubycdp/cuprite/blob/master/lib/capybara/cuprite/page.rb#L137-L157) that applies the white/blacklist...

It's possible for Cuprite to evaluate the parents or the path for a node that no longer belongs to the document.

Hey! Ran `rspec` on Windows (mingw64) and a few test broke: ``` Failures: 1) Capybara::Cuprite::Driver supports a custom path Failure/Error: @pid = ::Process.spawn(*@cmd, process_options) Errno::ENOEXEC: Exec format error - C:/Users/pniez/Documents/cuprite/spec/support/custom_chrome...

enhancement