Giter Site home page Giter Site logo

Comments (11)

andrewlinfoot avatar andrewlinfoot commented on May 14, 2024 2

I literally just got the email notification from one of my Github issues subscriptions and was reading the docs. I'll probably go with their implementation as well. Thanks for all the work you did on Navalia though! :)

from navalia.

joelgriffith avatar joelgriffith commented on May 14, 2024 1

Also this just launched: https://github.com/graphcool/chromeless and has gained a lot of traction already. It's likely I'll be closing this down in favor of their repo

from navalia.

joelgriffith avatar joelgriffith commented on May 14, 2024

Thanks for requesting this! I haven't dug too far into chrome's proxy functionality (especially when authentication is concerned). I've seen some discussion about it elsewhere, so I'll have to do some archaeology and get back to you. Thanks for the link as well, that will likely come in handy for us!

from navalia.

joelgriffith avatar joelgriffith commented on May 14, 2024

Sweet, so I think I have this working in a branch if you're interested in testing 🙃 0.2.3-0 has just been published and supports two things: proxies and basic-auth. To use both do:

const { Chrome } = require('navalia');
const chrome = new Chrome({
  flags: {
    proxyServer: 'http://my-cool-proxy.com'
  }
});

chrome
  .auth('username', 'password') <-- fills in auth details when the proxy prompts
  .goto('http://www.google.com')
  .then((res) => console.log(res))

If this works I'll do a stable release and document it. I'm naively assuming your proxy (and most) do basic-auth, which could be mistaken (but appears to be how electron/nightmare handle it).

Let me know!

from navalia.

andrewlinfoot avatar andrewlinfoot commented on May 14, 2024

from navalia.

andrewlinfoot avatar andrewlinfoot commented on May 14, 2024

Am working on testing this but I can't get it to work. My cdp.Network.requestIntercepted callback is never called. Any thoughts? Currently running on the latest version of chrome canary v62.0.3167.0 on Mac.

Btw the request interception methods weren't implemented until chrome v61. The current stable release is v60. We might need to add some documentation so people know they need to install canary for this feature.

from navalia.

joelgriffith avatar joelgriffith commented on May 14, 2024

Could you perhaps share your script? It's possible that there's a race condition internally... I can work on getting some "best practices" docs together for Canary. It's also possible that some proxies don't do auth in the way that this protocol expects... I can dig some later on this

from navalia.

joelgriffith avatar joelgriffith commented on May 14, 2024

I'm not going to give up just yet. If you're still interested, let me know and we can work through it

from navalia.

andrewlinfoot avatar andrewlinfoot commented on May 14, 2024

@joelgriffith curious why you still want to work on Navalia vs contributing to Chromeless? I don't know much how Chromeless or Navalia work under the hood but the APIs seem almost identical and Chromeless seems to have a lot more community support. Also the Chromeless AWS Lambda integration is super awesome.

Chromeless definitely seems less feature complete and has worse docs :( Hoping that will work itself out pretty quick though.

from navalia.

joelgriffith avatar joelgriffith commented on May 14, 2024

I have some very good news in this regard, and will be sharing more broadly once the details settle 😉

from navalia.

AshCoolman avatar AshCoolman commented on May 14, 2024

Any update on this news :)?

Navalia is my favourite framework - the Dev exp totally blows me away. But still, I cannot pass up the Chromeless promise of taking ~20+ minutes of e2e tests, and distributing them across mere seconds.

from navalia.

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.