The Sauce Labs Cookbook

Sauce Headless

Front End Performance Testing

Insights

External Resources

More Info


Page tree
Skip to end of metadata
Go to start of metadata

Basic HTTP authentication supplies a username and password via URL, such as http://test:test@browserspy.dk/password-ok.php. This request sends the credentials in the standard HTTP "Authorization" header.

Because browser support for basic HTTP authentication is limited, we recommend Injecting Cookies to Bypass Authentication Dialogs and Running an AutoIt Script as a Pre-run Executable to Handle Windows Security Authentication Dialogs as solutions for authentication while testing.

BrowserHTTP Authentication Support
ChromeSupported
FirefoxSupported, but Firefox will display a prompt asking you to confirm.
SafariUnsupported. See the Support KB article Setting Basic Authentication in Safari with a Pre-Run Executable for an example of how you can handle this situation.
Internet ExplorerUnsupported