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.

Log out of an application with the proxy

orbaraorbara Members
edited November -1 in Sahi - Open Source
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
Tagged:

Comments

  • narayannarayan Administrators
    Any idea why it is not appearing via Sahi? Any more information would be helpful.

    To go to a url, use _navigateTo(url)
  • orbaraorbara Members
    Thanks a lot !
    It works with _navigateTo.

    Thanks for your fast answer
    Regards
Sign In or Register to comment.