Cuprite: headless Chrome Ruby driver for Capybara

Here at Evrone, as well as open-sourcing some of the tools we've created ourselves, we also support other open-source initiatives, including offering our design and identity services to particularly promising and exceptional projects, such as Ferrum.
 
SAN FRANCISCO - June 4, 2023 - PRLog -- Ferrum + Capybara = Cuprite

Cuprite is a driver for Capybara that uses Ferrum - a minimal-dependency pure-Ruby driver for running headless Google Chrome instances.

If you're already using Capybara, Cuprite gives you all the benefits of Ferrum, but without the overheads of having to switch APIs. Because Ferrum employs Chrome's native DevTools Protocol (CDP), it doesn't need anything special in order to operate Chrome or Chromium in headless mode, unlike some alternative solutions.

Limiting scripting

Sometimes you want to run a test in a constrained environment, and Cuprite has the tools to do this in the form of white- and blacklists, which if populated specify the URL prefixes which are permitted or blocked from script execution. If you don't specify a whitelist, all scripts not matching the URLs in the blacklist will be permitted; if you do, only scripts from the URLs listed will be executed. Careful use of these lists can help speed up your test runs: for example, do you need your standard web analytics scripts executing in your tests?

Read more about the solution.

https://evrone.com/ferrum-ruby-chrome-driver
https://evrone.com/cuprite

Media Contact
44 Tehama St, San Francisco, CA 94105
mail@evrone.com
+14152994883
End
Source: » Follow
Email:***@evrone.com Email Verified
Tags:Ruby
Industry:Open source
Location:San Francisco - California - United States
Account Email Address Verified     Account Phone Number Verified     Disclaimer     Report Abuse
Evrone.com News
Trending
Most Viewed
Daily News



Like PRLog?
9K2K1K
Click to Share