A
A
artshelom2017-06-18 12:39:51
Java
artshelom, 2017-06-18 12:39:51

How to enter data in the appeared window for proxy authorization?

When entering the proxy server, a window appears for entering the login and password for the server. How to write this data in the code or enter it through selenium
Here is the code:

ChromeOptions option = new ChromeOptions();
option.addArguments("--proxy-server=http://сервер");
WebDriver driver = new ChromeDriver(option);
driver.get("http://2ip.ru/");

Here's a photo of what's open:
6fd18311a6ee448283e2845eccf47d27.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question