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.

login prompt window (how to populate the "username" and "password")

diikeediikee Members
edited November -1 in Sahi - Open Source
When I click on a button, a login prompt pops up labeled ip of the server.

_expectPrompt("Connect to 10.100.20.3", "The server is ready");
_click(_link("mine");
//--Need to populate the username field
//--Need to populate password field
_click(_button("Ok")); ----then click on "Ok" button to login

even if I don't populate the fields I should still be able to click on the "Ok" button

this prompt could be termed as java script generated

Comments

  • narayannarayan Administrators
    diikee,
    Could you elaborate the problem better? Not sure where you are facing a problem.
  • diikeediikee Members
    On my website, I have a button that when clicked a login pop up window appear titled "ip of the site"
    User has to input username and password and click on a check box "to remember the password"

    how do I pass control from the main site to the login pop up window??
  • narayannarayan Administrators
    This is a 401 authentication which is not supported by Sahi right now. If you can identify what authentication scheme your web server uses it may help in developing a solution. If it is BASIC authentication, it would be easier.
  • diikeediikee Members
    the login prompt is basic.

    I have a secure login which I don't have to enable if that what it takes.
  • adminadmin Administrators
    diikee, I did not get what you meant by "I have a secure login which I don't have to enable if that what it takes.". Could you rephrase that please?
  • diikeediikee Members
    Basic authentication is what I am using at the moment. ---->let's concentrate on this first.
    Secure authentication will be used on a later page to access the server.
Sign In or Register to comment.