18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
i can't use the same recorded script everytime i login to my apps
hi..
these are the two scripts me recorded and working but ?
1ist script
_highlight(_textbox("txtUserName"));
_setValue(_textbox("txtUserName"), "username");
_highlight(_password("txtPassword"));
_setValue(_password("txtPassword"), "password");
_highlight(_select("lstProductDB"));
_setSelected(_select("lstProductDB"), "1stdb");
_highlight(_submit("Login"));
_click(_submit("Login"));
2nd one
_popup(/App.*/)._highlight(_textbox("txtUserName"));
_popup(/App.*/)._setValue(_textbox("txtUserName"), "username");
_popup(/App.*/)._highlight(_password("txtPassword"));
_popup(/App.*/)._setValue(_password("txtPassword"), "password");
_popup(/App.*/)._highlight(_select("lstProductDB"));
_popup(/App.*/)._setSelected(_select("lstProductDB"), "1stdb");
_popup(/App.*/)._highlight(_submit("Login"));
_popup(/App.*/)._click(_submit("Login"));
each time when i login to my application the window name is changing. each script is working according to the window name.is there is any possiblities is there to find the window name before running the script?please help ..
these are the two scripts me recorded and working but ?
1ist script
_highlight(_textbox("txtUserName"));
_setValue(_textbox("txtUserName"), "username");
_highlight(_password("txtPassword"));
_setValue(_password("txtPassword"), "password");
_highlight(_select("lstProductDB"));
_setSelected(_select("lstProductDB"), "1stdb");
_highlight(_submit("Login"));
_click(_submit("Login"));
2nd one
_popup(/App.*/)._highlight(_textbox("txtUserName"));
_popup(/App.*/)._setValue(_textbox("txtUserName"), "username");
_popup(/App.*/)._highlight(_password("txtPassword"));
_popup(/App.*/)._setValue(_password("txtPassword"), "password");
_popup(/App.*/)._highlight(_select("lstProductDB"));
_popup(/App.*/)._setSelected(_select("lstProductDB"), "1stdb");
_popup(/App.*/)._highlight(_submit("Login"));
_popup(/App.*/)._click(_submit("Login"));
each time when i login to my application the window name is changing. each script is working according to the window name.is there is any possiblities is there to find the window name before running the script?please help ..
Comments
i got the fix..its because of our application. when i tried to login for the first time the first script is working. after login and log out , our application generates random id with prefix of _popup("app.*) so next time when i login with the 1st script its failing. i have to call the second script.
its working fine .please close the thread..