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.

Run or Execute a URL from/inside a script

GeorgeGeorge Members
edited November -1 in Sahi - Open Source
Build: 2011-07-19
OS : Windows 7
Browser : Firefox 7.0.1

Hi

Is it possible to run another url inside a script?

for example... can i have something like..

// filename : test.sah

_setValue(_textbox("EmailAddress"), "moredeep@in.com");
_setValue(_password("Password"), "123456");
_click(_submit("Login"));
_wait(10000);
$var1 = _getText(_span("ctl00_ContentPlaceHolder1_lblRegistionFrom"));
//_alert($var1);
// i get the url https://87.106.177.94/Registration/FFC99F8C3613EDAFD2D010DD3CE5279D.htm in var1 and i want to execute the url

_execute($var1);

can i or is there any command in sahi where i can execute the another url at this point?

George

Comments

  • narayannarayan Administrators
    Hi George,

    Use

    _navigateTo($var1);

    Also, please make sure you post your queries in the correct forum (and not in the jobs forum!).

    Thanks,
    Narayan
Sign In or Register to comment.