Class PageScrollUtil

java.lang.Object
org.uitnet.testing.smartfwk.ui.core.utils.PageScrollUtil

public class PageScrollUtil
extends Object
Author:
Madhav Krishna
  • Constructor Details

    • PageScrollUtil

      public PageScrollUtil()
  • Method Details

    • scrollToTopLeftPage

      public static void scrollToTopLeftPage​(SmartAppDriver appDriver)
    • scrollToTopRightPage

      public static void scrollToTopRightPage​(SmartAppDriver appDriver)
    • scrollToBottomLeftPage

      public static void scrollToBottomLeftPage​(SmartAppDriver appDriver)
    • scrollToBottomRightPage

      public static void scrollToBottomRightPage​(SmartAppDriver appDriver)
    • isElementInViewport

      public static boolean isElementInViewport​(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
    • scrollElementToViewport

      public static void scrollElementToViewport​(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
    • swipe

      public static void swipe​(SmartAppDriver appDriver, int xStart, int yStart, int xStop, int yStop)
      This method is applicable only to mobile native apps.
      Parameters:
      appDriver -
      xStart -
      yStart -
      xStop -
      yStop -
    • swipePageUp

      public static void swipePageUp​(SmartAppDriver appDriver)
    • swipePageDown

      public static void swipePageDown​(SmartAppDriver appDriver)
    • swipePageRight

      public static void swipePageRight​(SmartAppDriver appDriver)
    • swipePageLeft

      public static void swipePageLeft​(SmartAppDriver appDriver)
    • mouseClick

      public static void mouseClick​(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
    • mouseDoubleClick

      public static void mouseDoubleClick​(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
    • mouseContextClick

      public static void mouseContextClick​(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
    • mouseClickAndHold

      public static void mouseClickAndHold​(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
    • mouseRelease

      public static void mouseRelease​(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
    • mouseDragAndDrop

      public static void mouseDragAndDrop​(SmartAppDriver appDriver, org.openqa.selenium.WebElement source, org.openqa.selenium.WebElement target)