java - Block by a simple acl authentication for selenium test -


I am trying to write Selenium test for a web site.

I memoriam rematch CF & lt; Realm className = "org.apache.catalina.realm.MemoryRealm" had used a tomck server with path name = "/ DEV / tomcat1 / conf / tomcat-users Xml" />

I did not know how to set the authentication in my tests, I tried to put in "Selenium. Open"

  selenium.open ( "Http: // user: pass @ myserver: 8080 / index.jsp");  

Selenium launches the server, the web site is opened, but the user / password remains at the top without filling out the form.

Is it not possible and do I have to change Tomcat author, or do I miss something?

I try it and in some cases it works. For example:

This work is only for Apache in Linux and for some IIS $-> setBrowserUrl ("");


Comments