Class MobileBasePage

    • Constructor Detail

      • MobileBasePage

        protected MobileBasePage​(org.openqa.selenium.WebDriver driver)
    • Method Detail

      • 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