Interface WebBasePageJS

  • All Known Implementing Classes:
    WebBasePage

    public interface WebBasePageJS
    Default interface the main goal is to concentrate all mainly Java Script functions
    Author:
    David Yehezkel 29 Mar 2020
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int timeout  
    • Field Detail

      • timeout

        static final int timeout
    • Method Detail

      • clickOnElementByJS

        default void clickOnElementByJS​(org.openqa.selenium.WebElement element)
        click on element by using Java Script
        Parameters:
        element - Webelement element
      • mouseHoverByJS

        default void mouseHoverByJS​(org.openqa.selenium.WebElement element)
        Perform mouse hover on WebElement by Java Script
        Parameters:
        element - Webelement element
      • getBeforePseudoCode

        default String getBeforePseudoCode​(org.openqa.selenium.WebElement element)
        Get RGB color of Pseudo Code CSS from WebElemnt
        Parameters:
        element - Webelement element
        Returns:
        RGB(Red, Green, Blue)
      • openNewTab

        default void openNewTab()
        open new tab
      • getShadowRoot

        default org.openqa.selenium.WebElement getShadowRoot​(org.openqa.selenium.WebElement rootElement)
        Parameters:
        rootElement - Root shadow element
        Returns:
        return Shadow root element
      • getColorOfBeforeCssAtter

        default String getColorOfBeforeCssAtter​(org.openqa.selenium.WebElement element)
        get css of ::before attribute
        Parameters:
        element - Webelement element
        Returns:
        RGB(red, green, blue, blur)
      • openNewTabAndSwitchToIt

        default void openNewTabAndSwitchToIt()
        open new window (tab depend on driver version)