Code Monkey home page Code Monkey logo

Comments (5)

timdiggins avatar timdiggins commented on September 13, 2024 1

Thanks for response! Our plan is to upgrade to Ruby 3.0 so we can get the selenium-webdrivers up to 4.11 (from 4.9), but in the meantime we had to add "edgedl.me.gvt1.com" as well as "googlechromelabs.github.io" to the vcr ignore_hosts and then everything works - but it does seem slower than before -- haven't looked into it yet.

from webdrivers.

timdiggins avatar timdiggins commented on September 13, 2024

@kristofenyi can you share how you solved this? Having the same problem (and when we ignore the relevant hosts, we're getting a crash in chromedrivers / selenium says chrome binary not found. Manually updating chromedriver via RAILS_ENV=test rails webdrivers:chromedriver:update doesn't seem to help

from webdrivers.

titusfortner avatar titusfortner commented on September 13, 2024

I updated the wiki for this: https://github.com/titusfortner/webdrivers/wiki/Using-with-VCR-or-WebMock

The recommendation is to use Selenium 4.11 and do something like this so the Selenium Manager binary is not executed:

          allow(Selenium::WebDriver::DriverFinder).to receive(:path).and_return('/path/to/driver')

from webdrivers.

titusfortner avatar titusfortner commented on September 13, 2024

If you're trying to skip everything driver related, can return nil and also mock the file assertions:

          allow(Selenium::WebDriver:: Platform).to receive(:assert_file)
          allow(Selenium::WebDriver:: Platform).to receive(:assert_executable)

Let me know what the actual use case is and if I can help further.

from webdrivers.

titusfortner avatar titusfortner commented on September 13, 2024

I guess I'll leave this closed because my current plan for webdrivers 6 is to wrap Selenium Manager directly. But if someone has a PR that makes this work, I'll look at it.

from webdrivers.

Related Issues (20)

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.