Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selenium: basic authentication is not working #3

Open
joschi99 opened this issue Feb 19, 2014 · 7 comments
Open

Selenium: basic authentication is not working #3

joschi99 opened this issue Feb 19, 2014 · 7 comments
Assignees
Labels

Comments

@joschi99
Copy link
Owner

It is not possible to logon with Selenium on a website with basic authentication. The username and password is not filled in the combobox and firefox is not able to logon on the website with username and password via URL

@joschi99 joschi99 self-assigned this Feb 19, 2014
@joschi99
Copy link
Owner Author

The problem can be solved with the firefox addon AutoAuth. It has to be installed on Firefox on the Osiris server using the selenium profile. start firefox from commandshell using "firefox -profilemanager", install addon an the navigate to the website with basic authentication. The addon store username and password and will provide them when firefox ist going to this site automatically.
After that the testcase can be registered normally and will be executed correctly.

It has to be tested on customer IT Sonix for there Webservice check.

@joschi99
Copy link
Owner Author

Solution does'nt work on customer site.

@joschi99
Copy link
Owner Author

@joschi99
Copy link
Owner Author

  • Firefox: AutoAuth deinstalliert
  • Firefox: about:config -> neuen Parameter network.http.phishy-userpass-length = 255

URL: http://user:pwd@URL

Auf Osiris 2.1 getestet

@joschi99
Copy link
Owner Author

joschi99 commented Apr 7, 2014

Beim Kunden läuft der Webserice auf dem https-Port 553
https://user:pwd@webserver:553/epclicencewebservice/Licencewebservice.asmx

Auch mit dem oben beschriebenen Parameter wurde die Authentifizierung abgefragt.

@joschi99
Copy link
Owner Author

joschi99 commented May 9, 2014

Ich habe einen Test auf einem Testsystem mit einer https Verbindung auf dem Port 4434 mit Authentifizierung gemacht, der korrekt funktioniert. Das bedeutet, dass

  1. im benutzername bzw. PWD von IT Sonix ein Zeichen enthalten ist, das die Probleme verursacht
  2. die Firefox Konfiguration nicht korrekt ist
  3. das ungültige Zertifikat das Problem bereitet (beim Test wurde ein gültiges Zertifikat verwendet)

@joschi99
Copy link
Owner Author

joschi99 commented May 9, 2014

Laut Andreas Golser werden keine Sonderzeichen ":" oder "@" verwendet.

@joschi99 joschi99 added the bug label Aug 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant