How to click on scroll bar

How to click on scroll bar

Home Forums Ask Expert How to click on scroll bar

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32859
    Sasha ZAP
    Moderator

      Hello Adil,

      To do scrolling it is best to use the “ScrollTo” method – Please check the following explanation of this method at:
      https://www.zaptest.com/user-zone/product-training/zaptest/methods/method-scrollto

      Also you can use the “ScrollWheel” method which enables you to scroll the mouse’s wheel for a specific scroll bar, for example:
      Application(“ABC”).View(“ABC”).Object(“Object with caption”).Object(“ScrollBar”).Click
      Application(“ABC”).ScrollWheel x, y, z, k, True

      Please check the following explanation about the “ScrollWheel” method at:
      https://www.zaptest.com/user-zone/product-training/zaptest/methods/method-scrollwheel

      Also you can find most of ZAPTEST subjects and methods at the How-To page at:
      https://www.zaptest.com/user-zone/product-training

      Hope this helps.

      Thanks,
      ZAPTEST Team

      #32860
      Adil Kamal
      Participant

        Hi Karma,
        Thanks for getting back to me, but I am having problem with the click. I have created the Object and using the Click method but it doesn’t recognize this scroll bar where I am trying to click, it clicks on the main scroll bar on right hand side. I need to know how do i capture this object scroll bar when creating object.
        Here is the code:
        Application(“Wealth360”).View(“ScrollView”).Object(“ObjScrollBar”).Click

        #32861
        Sasha ZAP
        Moderator

          Hello Adil,
          Because the Scroll Bar is an image type object (Object which does not have any caption in it) you must use different techniques so ZAPTEST will be able to locate the object as expected:
          You need to set a Relative Object and probably to use the Area and Image type objects – Please check this video:

          Image and Area Objects

          Hope this helps,
          Thanks,
          ZAPTEST Team

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

        Virtual Expert

        ZAPTEST

        ZAPTEST Logo