How to use Selenium with digest authentication?

I am looking for a good way to use Selenium with Digest Authentication (for a flexible interface, although I don't think it matters if I cannot authenticate). I would like to avoid platform dependencies, such as using AutoIT to drive browser pop-ups (as cross-platform testing is the motivator for switching to Selenium), although if there is a good cross-platform library to perform such actions that will work well.

I think maybe there is a way to use a separate http client to create a session, and then transfer the session credentials to the browser, but I'm not sure how to enter the session identifier in the browser requests. This is just an idea I had, not sure how possible it is.

+4
source share
2 answers

You can try using an HTTP proxy, for example AuthProxy @CarlYoungblood .

This is an HTTP proxy server written in Ruby, designed specifically for testing a server that requires basic authentication with Selenium, but it should also work on a server with digest authentication.

+2
source

Simply put, you cannot automate the Flex interface from Selenium because it does not support Flash for testing (you can embed the flash plug-in in your browser, but Selenium will not be able to test the Flash component ...) Even if you can authenticate, you don’t can't check, so you should try something else like Sikuli

0
source

Source: https://habr.com/ru/post/1388524/


All Articles