Forum Discussion

sean_ng's avatar
sean_ng
Occasional Contributor
6 years ago

Unable to click into Date Time Picker

i am trying to click into a date time picker but there is very less information for me to do so.

I manage to change the month and year but am unable to click into the date, i don't have any code here to show because i don't even know how to start, i try to use the code that i use to change the month and year but unsuccessful.

 

is there any successful example with code anyone can recommend me to have a look ?

I am totally stuck, please help

2 Replies

    • sean_ng's avatar
      sean_ng
      Occasional Contributor

      i can't pass in value using the wDate, it seems like the date time picker does not allow value to be change unless using a click.

       

      i tried using css selectors but it does not work too


      CSSSelector("//*[div[class*=available]:not([class*='off'])\"]").Click();

       

      function CSSSelector(CSSSelector)

      {

      var Page, CSSSelector, arr, res, cnt, i,obj;

      Page = Sys.Browser().Page("*");

       

      var obj = Page.QuerySelector(CSSSelector)

      if (obj != null)

      {

      return obj;

      }

      else

      {

      Log.Error("The element was not found.");

      }

      }