Hello,
When we authenticate to a site using script based authentication script, it successfully logs in on the first window thats opened by selenium webdriver with no issues. The session is established using two cookies (AuthSSOCookie and JSESSIONID).
The issue is when we run AJAX spider which starts opening a new window and this window keeps on refreshing. We examined the HTTP Sessions for authenticated window where user was successfully logged in and the second window which AJAX opened, and noticed that AuthSSOCookie keeps changing and the browser keeps refreshing but the JSESSIONID is constant throughout all browser windows.
We think the issue is that we need to grab the AuthSSOCookie token from 1st authenticated window and pass it to all subsequent requests, to force ajax spider window based off 1st window session not treated as a new session.
We are seeking for your advice on how can we grab AuthSSSOcookie and pass it to all subsequent requests?
Thanks
Regards
Samee