Skip to content

How to load chrome extensions? #191

Closed

Description

@fanantoxa

Hey! I've found problem that I can't resolve by myself. Could you take a look please?

There are extensions in google chrome. Sometime in tests it's very useful to have some like react/redux devtools (or other) to debug bug in application.
Currently when I run test with cuprite (not heedlessly) extensions setting is disabled (so I can't install any).
Also with Selenium::WebDriver::Chrome I'm able to load .crx (file that can be downloaded from store)
Like:

Selenium::WebDriver::Chrome::Options.new.tap do |options|
  options.add_extension(<extension_path>)
end

and pass it to the Capybara::Selenium::Driver as options.

Is there any way how I can load Chrome with .crx extensions using cuprite driver?

Activity

  1. route commented on Apr 8, 2022

    @route
    Member

    Hi! I think the easiest thing to do is to use this flag while running Chrome and you can pass them to the browser using https://github.com/rubycdp/ferrum#customization and :browser_options hash.

  2. tetienne commented on Aug 22, 2022

    @tetienne

    @fanantoxa Did you succeed to load extension finally?

  3. locked and limited conversation to collaborators on Aug 22, 2022
  4. converted this issue into a discussion #208 on Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions