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.
How to get the URL of the Page using Sahi
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
_alert(document.url); is working. but
var $a=document.url ...._debug( $a);is not working. Could you please resolve this
This discussion has been closed.
Comments
did you tried using document.location.href? Maybe it makes a difference...
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.