I'm running this simple selenium test in java:
public static void main(String[] args){
WebDriver driver = new PhantomJSDriver();
driver.get("http://www.google.com");
WebElement element = driver.findElement(By.id("gbqfif"));
element.sendKeys("cheese");
element.submit();
System.out.println("Titulo:"+driver.getTitle());
driver.quit();
}
but here at my office it requires proxy authentication and I have no idea how to set it.
I have to put my user and password somewhere.
Can you help me out?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…