Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

How to set a proxy username and password?

Category: Selenium WebDriver

If your organization has a proxy server, you need to specify proxy server details like server name or IP address, username, and password to the WebDriverManager. Otherwise, it may raise/ cause errors like io.github.bonigarcia.wdm.WebDriverManagerException: java.net.UnknownHostException: chromedriver.storage.googleapis.com.

WebDriverManager.chromedriver()
                 .version(“83.0.0”)
                 .arch32()
                 .proxy(“proxyhostname:80”)
                 .proxyUser(“username”)
                 .proxyPass(“password”)
.setup();

Leave a Reply

Your email address will not be published. Required fields are marked *