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.

How to get the URL of the Page using Sahi

supusupu Members
edited November -1 in Sahi - Open Source
How to get the URL of the Page using Sahi. I know how to get by using document.url;
_alert(document.url); is working. but
var $a=document.url ...._debug( $a);is not working. Could you please resolve this

Comments

  • Hi

    did you tried using document.location.href? Maybe it makes a difference...
  • Hi Supu,

    You can use both

    _set($url, window.location.href);

    or
    _set($url, window.document.location.href);

    to get the url of the page.

    Regards,
    Theeran.
  • Thank you Very much Theeran for answering my question.
This discussion has been closed.