fbpx

How to click a changed day in a calendar

How to click a changed day in a calendar

Home Forums ZAPTEST Old Posts How to click a changed day in a calendar

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30790
    Hogan Rotem
    Participant

      Hello Zap,

      We want to create a test where there is a click on a different day in a calendar, please advise how to do it.

      Thanks.

      #30791
      Sasha ZAP
      Moderator

        Hello HoRotem,

        Thank-you for your question.

        Basically there are a few ways to click on a dynamic object (In your case it is a day in a calendar that changes each time):

        1. You can add one of the calendar’s days as an object in the Workbench, and by using the “SetProperty” method to update its X and Y coordinates (In its Properties) you can control each execution of the object in its new required day’s position in the GUI.
        2. Do as #1 but this time to change the “Text” property of the object which will specify the required day to be clicked.
        3. Another option is to use the “MouseMove” method to move the mouse to its required day clicking, and run the “KeyPress” method wherever the mouse is located.
        4. In the latest ZAPTEST versions which will be published soon, you can see the whole calendar as a table and use the “ClickCell” new updated method to click on a specific table’s cell, which is basically a specific day on the calendar.

        Please contact Zap for further help.

        Thanks,
        Sasha

        #30792
        Hogan Rotem
        Participant

          Thank-you Sasha for the detailed and quick response.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.

        Virtual Expert

        ZAPTEST

        ZAPTEST Logo