import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;

public class ProxyLoginAutomation {

    public static void main(String[] args) {
        // Set the path to your ChromeDriver executable
        System.setProperty("webdriver.chrome.driver", "path/to/chromedriver");

        // Initialize the WebDriver
        WebDriver driver = new ChromeDriver();

        // Open the URL of the proxy server login page
        driver.get("https://example.com/proxy-login");

        // Find the username and password input fields and fill them out
        WebElement usernameField = driver.findElement(By.id("username")); // Replace "username" with the actual ID of the username field
        WebElement passwordField = driver.findElement(By.id("password")); // Replace "password" with the actual ID of the password field

        usernameField.sendKeys("your_username");
        passwordField.sendKeys("your_password");

        // Assuming there is a login button, click it
        WebElement loginButton = driver.findElement(By.id("loginButton")); // Replace "loginButton" with the actual ID of the login button
        loginButton.click();

        // Close the WebDriver
        driver.quit();
    }
}