Skip to content
This repository was archived by the owner on May 13, 2022. It is now read-only.

Example for Basic Authentication #105

Closed
42sol-eu opened this issue May 25, 2018 · 1 comment
Closed

Example for Basic Authentication #105

42sol-eu opened this issue May 25, 2018 · 1 comment

Comments

@42sol-eu
Copy link

Some Webservers use Basic Authentication for login.

How would an implementation of a test script in golem for basic authentication look like?

@luciano-renzi
Copy link
Member

So technically basic authentication is not standarized by webdriver yet. See w3c/webdriver#385 and SeleniumHQ/selenium#5471. Until this is implemented you have two options basically: hardcoding the credentials into the URL or using a third party tool like autohotkey or autoit.

To use the first option just navigate to 'http://username:password@rest-of-the-url'. As this is not guaranteed to work crossbrowser I don't think it should be implemented by Golem, but it can be easily achieved with some string formatting

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants