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.

Unable to add double quotes both the side in variable..

mohit198mohit198 Members
edited November -1 in Sahi - Open Source
Hi All,

Code:
_click(_image("calendar image"));
var $currentdate = new Date();
var $currentdate2 = $currentdate.getDate()-1; // this gives previous date 22 if current date is 23.
_click(_cell($currentdate2)); // it execute like _click(_cell(22)); and not able to select 22 date on date picker.

as it expect _click(_cell("22"));

Now how to add double quotes in $currentdate2 variable .

I tried all the java script option but its not working.
i am using Version : V3.5


Please help
Thanks
Mohit

Comments

Sign In or Register to comment.