GithubHelp home page GithubHelp logo

hartl3y94 / selenium-proxy-authentication.chrome Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mahdibland/selenium-proxy-authentication.chrome

0.0 0.0 0.0 14.92 MB

Providing Proxy Authentication For Selenium Web Driver (Only HTTP/S Proxies)

License: MIT License

C# 100.00%

selenium-proxy-authentication.chrome's Introduction

Selenium Proxy Authentication For Chrome

Easily add your auth proxies to your chrome Driver with one line of code With Extension

Installation

You Can Simply Add this Library to your project with Nuget Package:

Install-Package SeleniumProxyAuthentication.Chrome -Version 2.1.1

Limitations

Currently this library not working in the incognito browser mode

  • i'm working on it and release a new version when it's completed

How to Use it

  • First you need to download the chrome driver from here (make sure that the version of your chrome browser should be match with the version of chrome driver that you download!)
https://chromedriver.chromium.org/downloads
  • Then put the chromedriver.exe in your project directory

  • Create a global chrome option

private static readonly ChromeOptions ChromeOptions = new();
  • Attach your proxy to the chrome option using the extension method that comes with nuget package
ChromeOptions.AddProxyAuthenticationExtension(new SeleniumProxyAuthentication.Proxy(
                    ProxyProtocols.HTTP,
                    "host:port:username:password"
                    ));
  • Cretae chrome driver and use the chrome option
IWebDriver driver = new ChromeDriver(ChromeOptions);
driver.Navigate().GoToUrl(new Uri("https://github.com"));
  • Remove Entire Cache That Created By Extensions (In the Dispose Function)
chromeOptions.DeleteExtensionsCache();

Guides

Proxy Format

  • โœ… Host:Port:Username:Password
  • โœ… Host:Port

Contact

Email: [email protected]
Telegram: https://t.me/ONll_CH4N

Licence

License FOSSA Status

FOSSA Status

selenium-proxy-authentication.chrome's People

Contributors

fossabot avatar mahdibland avatar

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.