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 Details

    • driver

      protected org.openqa.selenium.WebDriver driver
  • Constructor Details

    • WebBasePage

      public WebBasePage(org.openqa.selenium.WebDriver driver)
    • WebBasePage

      public WebBasePage(org.openqa.selenium.WebDriver driver, String objectRepositoryFilePath)
    • WebBasePage

      public WebBasePage(org.openqa.selenium.WebDriver driver, boolean waitForPageToLoad)
    • WebBasePage

      public WebBasePage(org.openqa.selenium.WebDriver driver, boolean waitForPageToLoad, String objectRepositoryFilePath)
  • Method Details

    • 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