Class MobileBasePage

java.lang.Object
co.verisoft.fw.pages.BasePage
co.verisoft.fw.pages.MobileBasePage

public abstract class MobileBasePage extends BasePage
Basic Mobile POM functionalities.
Since:
2.0.1
Author:
Nir Gallner @ www.VeriSoft.co
  • Constructor Details

    • MobileBasePage

      protected MobileBasePage(org.openqa.selenium.WebDriver driver)
    • MobileBasePage

      public MobileBasePage(VerisoftMobileDriver driver)
    • MobileBasePage

      public MobileBasePage(org.openqa.selenium.WebDriver driver, String objectRepositoryFilePath)
  • Method Details

    • swipeScreenByTouchAction

      public void swipeScreenByTouchAction(double percentHeightStart, double percentHeightEnd, int xStart, int xEnd, int secDuration)
      swap with x , y params
      Parameters:
      percentHeightStart - - start from the window Dimension height size
      percentHeightEnd - - end at the window Dimension height size
      xStart - - x start coordinate
      xEnd - - x end coordinate
      secDuration - how much to wait between press and move actions
    • swipeByTouchActionInsideContainerElement

      public void swipeByTouchActionInsideContainerElement(org.openqa.selenium.By containerBy, double percentHeightStart, double percentHeightEnd, int secDuration)
    • swipeByTouchActionInsideContainerElement

      public void swipeByTouchActionInsideContainerElement(org.openqa.selenium.WebElement containerElement, double percentHeightStart, double percentHeightEnd, int secDuration)
    • scrollInToView

      public org.openqa.selenium.WebElement scrollInToView(org.openqa.selenium.By by, int scrollingRounds)
      scroll into view to element on screen
      Parameters:
      by - by to the element needed to find
      scrollingRounds - how much round to try find
      Returns:
      element if found other wise throw ElementNotVisibleException
    • scrollInToViewElement

      public org.openqa.selenium.WebElement scrollInToViewElement(org.openqa.selenium.WebElement containerElement, org.openqa.selenium.By by, int scrollingRounds, double percentHeightStart, double percentHeightEnd, int secDuration)
      scroll into view inside container element
      Parameters:
      containerElement - - container element
      by - - by to the element needed to find
      scrollingRounds - - how much round to try find
      percentHeightStart -
      percentHeightEnd -
      secDuration -
      Returns:
      element if found other wise throw ElementNotVisibleException