Package co.verisoft.fw.pages
Class WebBasePage
- java.lang.Object
-
- co.verisoft.fw.pages.BasePage
-
- co.verisoft.fw.pages.WebBasePage
-
- All Implemented Interfaces:
WebBasePageJS
public abstract class WebBasePage extends BasePage implements WebBasePageJS
Represent expected functionality of any web base page- Author:
- David Yehezkel 29 Mar 2020
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.WebDriver
driver
-
Fields inherited from class co.verisoft.fw.pages.BasePage
pollingInterval, timeOut
-
Fields inherited from interface co.verisoft.fw.pages.WebBasePageJS
timeout
-
-
Constructor Summary
Constructors Constructor Description WebBasePage(org.openqa.selenium.WebDriver driver)
WebBasePage(org.openqa.selenium.WebDriver driver, boolean waitForPageToLoad)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
checkListText(List<org.openqa.selenium.WebElement> webText, String... listText)
boolean
checkUrlContainsText(String fraction)
check if the main page url contains the textprotected void
mouseHover(org.openqa.selenium.WebElement element)
mouse hover using Selenium Actionsvoid
pressKey(org.openqa.selenium.Keys key)
-
Methods inherited from class co.verisoft.fw.pages.BasePage
isOnPage, isOnPage, isOnPage, urlContains
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface co.verisoft.fw.pages.WebBasePageJS
clickOnElementByJS, getBeforePseudoCode, getColorOfBeforeCssAtter, getShadowRoot, mouseHoverByJS, openNewTab, openNewTabAndSwitchToIt
-
-
-
-
Method Detail
-
mouseHover
protected void mouseHover(org.openqa.selenium.WebElement element)
mouse hover using Selenium Actions- Parameters:
element
-
-
checkListText
public String checkListText(List<org.openqa.selenium.WebElement> webText, String... listText)
-
pressKey
public void pressKey(org.openqa.selenium.Keys key)
-
checkUrlContainsText
public boolean checkUrlContainsText(String fraction)
check if the main page url contains the text- Parameters:
fraction
-- Returns:
- true if text contains false other wise
-
-