18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

HTTP Authentication not cleared

hkhk Members
edited November -1 in Sahi - Open Source
Hi there,

I'm trying to write a test in which a HTTP Authentication is used. This test runs via Jenkins on an Ubuntu 11.04 LTS.
The first time the test runs, everything seems to be ok.

The second time the test runs, it uses the stored authentication and thats why my test is failing. To authenticate I fill out the form for the HTTP Auth which is provided by Sahi but it doesn't appear on the second run.

So I would like to know how I can clear the authentication data that the login form appears again instead of opening the page directly.

I'm using Sahi 3.5 and the tests are written with Behat and Mink (both latest version). Phantom JS is used for the browser but the effect is the same with Chrome and Firefox on my desktop system (Win 7, Chrome and Firefox are latest version).

Thanks in advance for any hint.
Greetings

HK

Comments

  • hkhk Members
    Ok i solved this problem for me.

    I just use h t t p://username:password[at]url. My problem before was that the target page is a frameset and the authentication didn't work in that case.
    So I use the adress of the specific frame I need to check and then credentials by url are working.
Sign In or Register to comment.