Class 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 Detail

      • driver

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

      • WebBasePage

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

        public WebBasePage​(org.openqa.selenium.WebDriver driver,
                           boolean waitForPageToLoad)
    • 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