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 Modifier and Type Field Description protected VerisoftMobileDriverdriver-
Fields inherited from class co.verisoft.fw.pages.BasePage
pollingInterval, timeOut
-
-
Constructor Summary
Constructors Modifier Constructor Description MobileBasePage(VerisoftMobileDriver driver)protectedMobileBasePage(org.openqa.selenium.WebDriver driver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.WebElementscrollInToView(org.openqa.selenium.By by, int scrollingRounds)scroll into view to element on screenorg.openqa.selenium.WebElementscrollInToViewElement(org.openqa.selenium.WebElement containerElement, org.openqa.selenium.By by, int scrollingRounds, double percentHeightStart, double percentHeightEnd, int secDuration)scroll into view inside container elementvoidswipeByTouchActionInsideContainerElement(org.openqa.selenium.By containerBy, double percentHeightStart, double percentHeightEnd, int secDuration)voidswipeByTouchActionInsideContainerElement(org.openqa.selenium.WebElement containerElement, double percentHeightStart, double percentHeightEnd, int secDuration)voidswipeScreenByTouchAction(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, urlContains
-
-
-
-
Field Detail
-
driver
protected VerisoftMobileDriver driver
-
-
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
-
-