fbpx

Get your 6-month No-Cost Opt-Out offer for Unlimited software automation!

how to use the scrollto and mousemove

how to use the scrollto and mousemove

Home Forums Ask Expert how to use the scrollto and mousemove

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31232
    chitanya kiran
    Participant

      i have some objects in my webpage at the scroll down of the toolbar.
      I want to click and select those… let me know how to use the scrollto or mouse move methods.

      help me in the below code

      site_url =”https://www.tycois.com/”

      Application(“tycois-HS”).Launch Datatable.Value(“Browser”),site_url

      Application(“tycois-HS”).View(“HS1”).Object(“ACCESS YOUR HEALTHCARE SECURIT”).Exist
      Application(“tycois-HS”).View(“HS1”).Object(“Please Select Your M”).Exist
      Application(“tycois-HS”).View(“HS1”).Object(“Image Object 36”).Click
      Application(“tycois-HS”).View(“HS1”).Object(“Image Object 31”).Click

      Application(“tycois-HS”).View(“HS1”).Object(“Image Object 34”).ScrollTo
      Application(“tycois-HS”).View(“HS1”).Object(“Image Object 34”).Click

      Application(“tycois-HS”).View(“HS1”).Object(“Image Object 33”).MouseMove
      Application(“tycois-HS”).View(“HS1”).Object(“Image Object 33”).Click

      Application(“tycois-HS”).View(“HS1”).Object(“Image Object 30”).MouseMove
      Application(“tycois-HS”).View(“HS1”).Object(“Image Object 30”).Click
      Application(“tycois-HS”).View(“HS1”).Object(“Image Object 35”).MouseMove
      Application(“tycois-HS”).View(“HS1”).Object(“Image Object 35”).Click

      #31233
      Kirill Bulatnikov
      Participant

        Hello ckiran!
        Thank you for using ZAPTEST

        ScrollTo method have to be used prior to the validation of the objects that not visible e.g. objects that not on the main screen.
        In your example objects “ACCESS YOUR HEALTHCARE SECURIT”, “Please Select Your M”, “Image Object 36” and “Image Object 31” have to be visible on the main screen immediately after page load and next object (“Image Object 34”) seemed to be laid below the main screen.

        Also you don’t need to use MouseMove prior to Click method – in “click” mouse will automatically moves to an object. MouseMove really useful when you working with drop down lists activated by simple placing cursor onto it (but not need to be clicked).

        Other then that your syntax looks correct.

        Thanks,
        ZAPTEST team

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