Package co.verisoft.fw.pages
Class MobileBasePage
java.lang.Object
co.verisoft.fw.pages.BasePage
co.verisoft.fw.pages.MobileBasePage
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, repository, timeOut
-
Constructor Summary
ConstructorsModifierConstructorDescriptionMobileBasePage
(VerisoftMobileDriver driver) protected
MobileBasePage
(org.openqa.selenium.WebDriver driver) MobileBasePage
(org.openqa.selenium.WebDriver driver, String objectRepositoryFilePath) -
Method Summary
Modifier and TypeMethodDescriptionorg.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 paramsMethods inherited from class co.verisoft.fw.pages.BasePage
isOnPage, isOnPage, isOnPage, urlContains
-
Constructor Details
-
MobileBasePage
protected MobileBasePage(org.openqa.selenium.WebDriver driver) -
MobileBasePage
-
MobileBasePage
-
-
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 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
-