Set date via DOM which is not visible in UI

4 posts, 0 answers
  1. Uroš
    Uroš avatar
    37 posts
    Member since:
    Dec 2013

    Posted 01 Dec 2015 Link to this post

    I have a date picker in the application which does not offer custom date insertion, but only navigation Previous/Next. In my test scenario I need to set exact date, because I will verify the calculation for the same month. I have found some references that Test Studio is able to set the text of a field like this directly through the DOM, even if you cannot edit it through the UI.

     Is there any example how this can be done?

     

  2. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 01 Dec 2015 Link to this post

    Hello Uros,

    Yes Test Studio is capable to set the text/value to an element directly from the DOM however it needs to be an element that accepts such methods, especially when this is a span element.

    I have also registered in MyHours application and investigated this further, unfortunately this cannot be done.

    Thank you for your understanding.

    Regards,
    Ivaylo
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. Uroš
    Uroš avatar
    37 posts
    Member since:
    Dec 2013

    Posted 02 Dec 2015 Link to this post

    Thanks for the fast replay. Is there any other trick or workaround that I could look into to solve my problem?
  4. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 02 Dec 2015 Link to this post

    Hello Uros,

    Unfortunately looking at the application no suitable workaround can be provided. This limitation comes more from the application you are testing rather than from Test Studio.

    Thank you for your understanding.

    Regards,
    Ivaylo
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top