Package co.verisoft.fw.pages
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
-
-
Field Summary
-
Fields inherited from class co.verisoft.fw.pages.BasePage
driver, pollingInterval, timeOut
-
-
Constructor Summary
Constructors Modifier Constructor Description MobileBasePage(VerisoftMobileDriver driver)
protected
MobileBasePage(org.openqa.selenium.WebDriver driver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.WebElement
scrollInToView(org.openqa.selenium.By by, int scrollingRounds)
scroll into view to element on screenorg.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 elementvoid
swipeByTouchActionInsideContainerElement(org.openqa.selenium.By containerBy, double percentHeightStart, double percentHeightEnd, int secDuration)
void
swipeByTouchActionInsideContainerElement(org.openqa.selenium.WebElement containerElement, double percentHeightStart, double percentHeightEnd, int secDuration)
void
swipeScreenByTouchAction(double percentHeightStart, double percentHeightEnd, int xStart, int xEnd, int secDuration)
swap with x , y params-
Methods inherited from class co.verisoft.fw.pages.BasePage
isOnPage, isOnPage, isOnPage, urlContains
-
-
-
-
Constructor Detail
-
MobileBasePage
protected MobileBasePage(org.openqa.selenium.WebDriver driver)
-
MobileBasePage
public MobileBasePage(VerisoftMobileDriver 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 sizepercentHeightEnd
- - end at the window Dimension height sizexStart
- - x start coordinatexEnd
- - x end coordinatesecDuration
- 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 findscrollingRounds
- 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 elementby
- - by to the element needed to findscrollingRounds
- - how much round to try findpercentHeightStart
-percentHeightEnd
-secDuration
-- Returns:
- element if found other wise throw ElementNotVisibleException
-
-