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 set the value in the variable ?

degaleesanpdegaleesanp Members
edited November -1 in Sahi - Open Source
hi,

//_click(_heading3("2101017300854 1/5 : Whole Blood 4ml"));

I need to assign the number " 2101017300854 " , in the variable 'a'.

Can anybody help me out .

Thanks in advance

Comments

  • SumitraSumitra Members
    Hi degaleesanp,

    Use:

    var $a = 2101017300854 ;
    _click(_heading3($a + " 1/5 : Whole Blood 4ml"));

    For more Details:

    http://sahi.co.in/w/sahi-scripting-basics

    Regards
    Sumitra
  • Thanks Sumitra,

    But i will click in the runtime, so " 2101017300854 " may be varies.

    //_click(_heading3("2101017300854 1/5 : Whole Blood 4ml"));

    1. After this event, i have to assign the number in the variable 'a'.
    2. How to use the substring for the _click(_heading3("2101017300854 1/5 : Whole Blood 4ml")); ?
Sign In or Register to comment.