How to perform Basic Authentication for FirefoxDriver, ChromeDriver and IEdriver in Selenium WebDriver?
True, BASIC HTTP authentication is not currently supported but I got it working now for FF and for Chrome.
The code I wrote in the questions works for those drivers. I just tried using FF3.6 as Firefox default browser (installed in Firefox folder) instead of FF4 (not supported yet). For IE, i may try to disable the authentication through Windows Registry.
This page http://code.google.com/p/selenium/issues/detail?id=34 may help.
How to submit HTTP authentication (Flask BASIC Auth) with Selenium to ChromeDriver
Resolved by adding a /
at the end of the URL
driver.get('https://user:password@192.168.178.55:7000/wow/')
Related Topics
What Is Xml Bom and How to Detect It
Unsatisfieddependencyexception: Error Creating Bean with Name
Close One Jframe Without Closing Another
Javafx and Maven: Nullpointerexception: Location Is Required
Is There a Method That Calculates a Factorial in Java
How Do Java Method Annotations Work in Conjunction with Method Overriding
Java 8 Lambda Expression and First-Class Values
How Much Memory Does a String Use in Java 8
Annotation to Make a Private Method Public Only for Test Classes
How to Copy Hashmap (Not Shallow Copy) in Java
Refreshing Static Content with Spring MVC and Boot
The Matching Wildcard Is Strict, But No Declaration Can Be Found for Element 'Context:Component-Scan