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.
Log out of an application with the proxy
Hi,
I've a problem with a script. At the end of the script I must click in a button 'logoff' . My problem is, when I run sahi, this button doesn't appear in the web, so I can't click on.
I've tried putting :
_assertContainsText(document.body, "LogOff");
or
_click(_link("LogOff"));
but it doesn't work. I know the url address but in the script I think that we can't put the url address to log out.
The problem is too, i can't logout of the application.
Thanks you if you have an idea.
Regards
orbara
I've a problem with a script. At the end of the script I must click in a button 'logoff' . My problem is, when I run sahi, this button doesn't appear in the web, so I can't click on.
I've tried putting :
_assertContainsText(document.body, "LogOff");
or
_click(_link("LogOff"));
but it doesn't work. I know the url address but in the script I think that we can't put the url address to log out.
The problem is too, i can't logout of the application.
Thanks you if you have an idea.
Regards
orbara
Tagged:
Comments
To go to a url, use _navigateTo(url)
It works with _navigateTo.
Thanks for your fast answer
Regards