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.

Geting a dynamically changing value

piramussspiramusss Members
edited November -1 in Sahi - Open Source
Dear all,

I have a Issue in my project..I have a Form which saves the entry with a Unique Registration number in the success page,each time which is displayed in a simple text.In another page i choose this Registration number from a dropdown to edit other details.

So By Using sahi tool how can i take the dynamically changing Registration number and use in the 2nd page.

Please help me

Comments

  • I'm in the same boat - and Narayan is already aware of this issue:
    using _getGlobal on a different popup window.
    Hopefully we hear from him soon.

    Page 1:
    _setGlobal("RefID", _getText(_div("Unique Registration Number")));
    Page 2:
    _select(_div(_getGlobal("RefID")));
  • narayannarayan Administrators
    Hi rj412,

    These are not related. For piramusss, he just needs to do:

    var $registrationId = _getText(_div("idWhereRegNoIsDisplayed"));
    // and then later
    _setSelected(_select("myDropDown"), $registrationId);

    Regards,
    Narayan
Sign In or Register to comment.