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.

Can we automate datepicker.??

anu_priyaanu_priya Members
edited November -1 in Sahi - Open Source
Hi narayan,

In my application there is a web page which has datepicker ( in the form of calender) which selects date and puts into the text box. And then during the recording of script i want to store that value of date into excel sheet.

And then during running that script it should pick that value from excel sheet and then perform the action.

Browser:Internet explorer
Operating systems: Windows XP professional version 2002

This is the coding which comes after selecting the date from the date picker in the SAHI controller-

_click(_image("datePicker.gif[1]"));
Object required (url of web page:575)

its not able to retrieve value from the datepicker.

Hope now you can understand what i want to say

Waiting for your reply.

Thanks..

Comments

  • narayannarayan Administrators
    Looks like a bug. What version of Sahi are you using?
  • i am using version 3..
  • Hi narayan,

    Waiting for ur rply...
  • narayannarayan Administrators
    anu_priya,

    To investigate whether this is a bug and get a fix for it, you will have to show us a working example where we can test it out. The latest build of Sahi is 30 April 2010. Are you using that build of Sahi? Is your script correct? Is there an image like _image("datePicker.gif[1]") on the screen?

    Regards,
    Narayan
  • Hi,

    script is auto-generated by sahi only which i have mentioned above.

    _image("datePicker.gif[1]") is the datepicker icon. and after clicking this image a pop-up window gets generated and sahi is not able to automate that action i.e. selecting date from the pop-up(datepicker).

    Thanks in advance.

    Waiting...
  • Hi narayan,

    Can u suggest me something regarding this issue
  • narayannarayan Administrators
    Hi anu_priya,

    Please send us a sample page at support@sahi.co.in with the necessary control and we will fix it for you. It seems a specific issue with your application and Sahi and we can investigate this further only if we have access to a sample web page. I would suggest you ask your developers where you can get a sample page.

    Regards,
    Narayan
  • okk narayan i'l surely mail you..

    Thanks..
Sign In or Register to comment.