Class ComponentUtils

java.lang.Object
org.primefaces.selenium.component.base.ComponentUtils

public final class ComponentUtils extends Object
  • Method Details

    • hasAjaxBehavior

      public static boolean hasAjaxBehavior(org.openqa.selenium.WebElement element, String behavior)
    • hasBehavior

      public static boolean hasBehavior(org.openqa.selenium.WebElement element, String behavior)
    • isWidget

      public static boolean isWidget(org.openqa.selenium.WebElement element)
    • isAjaxScript

      public static boolean isAjaxScript(String script)
    • getWidgetConfiguration

      public static String getWidgetConfiguration(org.openqa.selenium.WebElement element)
    • getWidgetByIdScript

      public static String getWidgetByIdScript(String id)
    • sendKeys

      public static void sendKeys(org.openqa.selenium.WebElement input, CharSequence value)
      When using Chrome what can happen is the keys are sent too fast and the Javascript of the input can't process it fast enough. This method sends the keys 1 at a time using Chrome so the input can properly process each key.
      Parameters:
      input - the input component to send keys to
      value - the value to send to the input