Stop redirects in selenium scripts

329 views
Skip to first unread message

Lukas Mann

unread,
Sep 11, 2024, 5:22:44 PM9/11/24
to ZAP User Group
Currently we are trying to implement the Automation Framework into our CI/CD pipelines, but at the moment we are stuck on authenticating ZAP via local storage.

Our selenium script is based on some of the community scripts we have found and runs correctly. The problem is that it redirects to the authentication domain before getting to our actual domain and writing to local storage.

My question is essentially just as the subject says, is there a way to stop it from redirecting in the scripts? Or write to a domain without visiting it?

As we use SSO, i would like to avoid logging in through a form.

Simon Bennetts

unread,
Sep 13, 2024, 1:02:51 PM9/13/24
to ZAP User Group
Trying to inject a user session into a browser is painful.
In some cases I've got it to work, but in others I dont beleive its possible.

You could update your selenium script to open a URL on your actual domain first?

Alternatively, have you tried out the ZAP Authentication Tester Dialog?

I have found that does work with some SSO solutions.

Cheers,

Simon
Reply all
Reply to author
Forward
0 new messages