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.

_assertExists()

jrsreenivasjrsreenivas Members
edited November -1 in Sahi - Open Source
Hi Friends i have a issue .

I want to check for the string using _assert() function

EX:
_assertExists(_span("An LOV of type=LOV_TYPE already exists with value1=LOV9));

the same string i want to pass variable for LOV of type & value1

i tried with the below statements and i am getting error

1)
_assertExists(_span("An LOV of type="$LOV_TYPE"already exists with value1="$LOV_value));

2)
_assertExists(_span("An LOV of type="+$LOV_TYPE+"already exists with value1="+$LOV_value));

Please provide me solution if any one has

Thanks

Comments

  • narayannarayan Administrators
    The second one is almost right; it needs a space before 'already'.
    _assertExists(_span("An LOV of type="+$LOV_TYPE+" already exists with value1="+$LOV_value));
    
Sign In or Register to comment.