Smartproxy Help Center

Welcome to the Smartproxy developer hub. You'll find comprehensive guides and documentation to help you start working with proxies as quickly as possible, as well as support if you get stuck. Let's jump right in!

Documentation

Selenium

All in one proxy integration for Selenium automation tool

Selenium is a browser automation tool, it has the support of some of the largest browser vendors and is widely used by companies to automate day to day tasks.

🚧

Notice

Selenium does not support the standard username:password authentication thus you will need to have whitelisted IP to continue progress with this automation tool.

1. Choosing your language

Selenium officially supports the following programming languages:

  • Java
  • C#
  • Ruby
  • Python
  • Javascript (Node)

To continue development with the tool, it's recommended that you have experience with at least one of them or have a programming background in general.

2. Choosing your WebDriver

Selenium offers a variety of WebDrivers to perform tests, to continue development you will need to use at least one of available WebDrivers.

You can find the whole list of available WebDrivers here however, currently, Smartproxy providers tutorials for the following two:

3. Getting in to the code

Smartproxy offers code examples for all 5 programming languages officially supported by Selenium.

Do note that while syntax and code layout may differ, the principle of proxy setup is relatively similar to each programming language.

To download our Code example for your preferred programming language and WebDriver, take a look at the tables below:

Google Chrome Driver

curl https://raw.githubusercontent.com/Smartproxy/Selenium/master/java/chrome/example.java > example.java
curl https://raw.githubusercontent.com/Smartproxy/Selenium/master/csharp/chrome/example.cs > example.cs
curl https://raw.githubusercontent.com/Smartproxy/Selenium/master/ruby/chrome/example.rb > example.rb
curl https://raw.githubusercontent.com/Smartproxy/Selenium/master/python/selenium_python.py > selenium_python.py
curl https://raw.githubusercontent.com/Smartproxy/Selenium/master/nodejs/chrome/example.js > example.js

Mozilla GeckoDriver

curl https://raw.githubusercontent.com/Smartproxy/Selenium/master/java/firefox/example.java > example.java
curl https://raw.githubusercontent.com/Smartproxy/Smartproxy/master/selenium/csharp/firefox/example.cs > example.cs
curl https://raw.githubusercontent.com/Smartproxy/Selenium/master/ruby/firefox/example.rb > example.rb
curl https://raw.githubusercontent.com/Smartproxy/Selenium/master/python/selenium_python.py > selenium_python.py
curl https://raw.githubusercontent.com/Smartproxy/Selenium/master/nodejs/firefox/example.js > example.js

You can copy and run all of the commands from the table above in your Terminal/Command Prompt window.

4. Configuring the connection

To configure your preferred endpoint in our code examples, please change the gate.smartproxy.com:7000 line in within the punctuation marks (''). Different languages will have this line placed and formatted differently, take a look at the reference table below:

String ProxyServer = "gate.smartproxy.com";
int ProxyPort = 7000;
HttpProxy = "gate.smartproxy.com:7000"
proxy = Selenium::WebDriver::Proxy.new(http: "gate.smartproxy.com:7000")
HOSTNAME = 'gate.smartproxy.com'
PORT = '7000'
let addr = 'gate.smartproxy.com:7000'

5. Additional information

Please note that the examples provided are just for proxy setup reference.

If you need more help with the setup, refer to our Github page for language-specific setups:

Updated about a year ago

Selenium


All in one proxy integration for Selenium automation tool

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.