Git Product home page Git Product logo

Comments (9)

route avatar route commented on August 27, 2024 1

@thbar I can add proxy support pretty quick but there's one downside you can set it only when browser starts and there's no way currently to change it on fly, as Chrome doesn't support it cyrus-and/chrome-remote-interface#152

from cuprite.

route avatar route commented on August 27, 2024 1

@thbar in fact we needed proxies too, this was the beginning of cuprite we wanted too many exotic features :) will roll it out in an hour or so I think ;)

from cuprite.

thbar avatar thbar commented on August 27, 2024

Ah my bad - I didn't grep correctly and missed this:

https://github.com/machinio/cuprite/blob/2da175ad85066f005209b75e3f437004b70294f9/lib/capybara/cuprite/browser.rb#L123-L125

Indeed it's not supported yet.

I'm unsure how hard it would be to support this.

I'll leave this opened for now, but please feel free to close if you feel this is out of scope!

from cuprite.

thbar avatar thbar commented on August 27, 2024

@route is the browser starting once per test suite? Or instead (as I assume) once per test? If it's once per test, it's perfectly acceptable as a limitation (& not causing any trouble in my case at least).

from cuprite.

route avatar route commented on August 27, 2024

In general you start browser once and then reset after each test, but in this case proxy options will be passed as command line options so reset won't help, you have to restart browser after each test and this will slow down everything.

from cuprite.

thbar avatar thbar commented on August 27, 2024

To clarify: I use multiple drivers in this test suite: one is custom_billy (specs are tagged with driver: :custom_billy), and these ones are all using a proxy. The other one will be a "regular" cuprite, so a différent driver instance etc.

If I understand well this means that each "driver type" will start a browser once, and it will be fast enough.

In all cases, I can provide feedback if you implement this (but don't feel forced to do so if you feel it's not the good moment or not a good feature! my use case is pretty exotic!).

from cuprite.

route avatar route commented on August 27, 2024

I pushed changes 9ddeddf for basic support, though it is missing auth and runtime proxy rotation

from cuprite.

thbar avatar thbar commented on August 27, 2024

@route thanks! I will try this out & will report back.

from cuprite.

thbar avatar thbar commented on August 27, 2024

@route I was able to set the proxy, and it mostly worked, but my suite is regressing for some weird reason at this point. I cannot pinpoint it exactly at this point, but will investigate!

I will still close, because I believe the proxy support is already in master & providing value as is. Thanks!

from cuprite.

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.