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 get date from GWT datebox in sahi script

Raghu GRaghu G Members
edited November -1 in Sahi - Open Source
how to get date from GWT datebox in sahi script.

Could you please share me the script to select the date of 04/08/2011 from GWT datebox calender?

Note: « 2011 Aug »

M T W T F S S
25 26 27 28 29 30 31
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31 1 2 3 4

Comments

  • Hi Raghu,

    Here is an example:
    _navigateTo("http://datepickerdemo.appspot.com/");
    _click(_textbox(0));
    _click(_div("›"));
    _click(_cell("7"));
    var $date = _getText(_textbox(0));
    _alert($date);
    

    Let me know if you face any problem.

    Regards
    Sumitra
  • Hi Sumithra,

    I have tried with the above code but still its not working. The calender which I am using is the GWT datebox.
    Is sahi supports GWT calenders? If yes, then please provide some other solution.

    Regards,
    Raghu G
  • Hi Raghu G,

    It will be better if you can point us to an application so that i can help you to select the date?

    Regards
    Sumitra
Sign In or Register to comment.