Comments (9)
@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.
@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.
Ah my bad - I didn't grep correctly and missed this:
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.
@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.
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.
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.
I pushed changes 9ddeddf for basic support, though it is missing auth and runtime proxy rotation
from cuprite.
@route thanks! I will try this out & will report back.
from cuprite.
@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)
- BUG: select actions does not trigger "input" events (only "change" event) on select inputs/dropdowns
- Proxy does not get set
- How do I debug the behavior of this gem?
- Cuprite does not appear to support `evaluate_script` HOT 1
- Setting a color input doesn't fire the change or input events
- Process forking causing cuprite/ferrum to never exit HOT 1
- 500 error, possibly related to web sockets with Ferrum
- Race condition leading to `Argument should belong to the same JavaScript world as target object` HOT 2
- What the best way to play with multiple/new windows or tabs? HOT 1
- fill_in with empty string does not call addEventListener('input') HOT 1
- Visibility issue upon replacing hidden nodes (Race condition)
- keydown event sent without key property HOT 5
- Obsolete nodes are not refreshed when using Capybara's #within and/or #synchronize HOT 2
- Release that references ferrum 0.14.0
- Scraping Blocked on Indeed Site HOT 1
- Capybara::Cuprite::InvalidSelector
- Loading all JS files from asset pipeline and packs folder for testing with capybara/rspec
- Tracing in tests
- Incorrect Element.scrollWidth property value
- compatibility with Emulation.setVirtualTimePolicy HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cuprite.