Class ElementActionsHelper

java.lang.Object
com.shaft.gui.element.internal.ElementActionsHelper

public class ElementActionsHelper extends Object
  • Field Details Link icon

  • Constructor Details Link icon

    • ElementActionsHelper Link icon

      public ElementActionsHelper(boolean isSilent)
  • Method Details Link icon

    • waitForElementPresence Link icon

      public List<Object> waitForElementPresence(org.openqa.selenium.WebDriver driver, String elementReferenceScreenshot)
    • waitForElementPresence Link icon

      public List<Object> waitForElementPresence(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, boolean checkForVisibility)
    • scrollToFindElement Link icon

      public List<Object> scrollToFindElement(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator)
    • waitForElementToBeClickable Link icon

      public boolean waitForElementToBeClickable(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String actionToExecute)
    • waitForElementTextToBeNot Link icon

      public boolean waitForElementTextToBeNot(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String textShouldNotBe)
    • executeNativeMobileCommandUsingJavascript Link icon

      public void executeNativeMobileCommandUsingJavascript(org.openqa.selenium.WebDriver driver, String command, Map<String,String> parameters)
    • submitFormUsingJavascript Link icon

      public void submitFormUsingJavascript(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator)
    • changeWebElementVisibilityUsingJavascript Link icon

      public void changeWebElementVisibilityUsingJavascript(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, boolean desiredIsVisibleState)
    • takeScreenshot Link icon

      public List<Object> takeScreenshot(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String actionName, String testData, boolean passFailStatus)
    • getElementName Link icon

      public String getElementName(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator)
    • performClipboardActions Link icon

      public boolean performClipboardActions(org.openqa.selenium.WebDriver driver, ClipboardAction action)
    • isFoundInStacktrace Link icon

      public boolean isFoundInStacktrace(Class<?> classObject, Throwable throwable)
    • identifyUniqueElement Link icon

      public List<Object> identifyUniqueElement(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator)
    • identifyUniqueElementIgnoringVisibility Link icon

      public List<Object> identifyUniqueElementIgnoringVisibility(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator)
    • getMatchingElementsInformation Link icon

      public List<Object> getMatchingElementsInformation(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, boolean checkForVisibility)
    • getElementsCount Link icon

      public int getElementsCount(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator)
      Returns the number of elements that match a certain elementLocator
      Parameters:
      driver - the current instance of Selenium WebDriver
      elementLocator - the locator of the webElement under test (By xpath, id, selector, name ...etc.)
      Returns:
      integer value that represents the number of elements that match the desired elementLocator
    • passAction Link icon

      public void passAction(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String testData, List<Object> screenshot, String elementName)
    • passAction Link icon

      public void passAction(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String actionName, String testData, List<List<Object>> screenshots, String elementName)
    • failAction Link icon

      public void failAction(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, Throwable... rootCauseException)
    • failAction Link icon

      public void failAction(org.openqa.selenium.WebDriver driver, String testData, org.openqa.selenium.By elementLocator, Throwable... rootCauseException)
    • failAction Link icon

      public void failAction(org.openqa.selenium.WebDriver driver, String testData, org.openqa.selenium.By elementLocator, List<List<Object>> attachments, Throwable... rootCauseException)
    • failAction Link icon

      public void failAction(org.openqa.selenium.WebDriver driver, String actionName, String testData, org.openqa.selenium.By elementLocator, List<List<Object>> screenshots, Throwable... rootCauseException)
    • createReportMessage Link icon

      public String createReportMessage(String actionName, String testData, String elementName, Boolean passFailStatus)
    • reportActionResult Link icon

      public String reportActionResult(org.openqa.selenium.WebDriver driver, String actionName, String testData, org.openqa.selenium.By elementLocator, List<List<Object>> screenshots, String elementName, Boolean passFailStatus, Throwable... rootCauseException)