Class ComponentUtils
- java.lang.Object
-
- org.primefaces.selenium.component.base.ComponentUtils
-
public final class ComponentUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetWidgetByIdScript(String id)static StringgetWidgetConfiguration(org.openqa.selenium.WebElement element)static booleanhasAjaxBehavior(org.openqa.selenium.WebElement element, String behavior)static booleanhasBehavior(org.openqa.selenium.WebElement element, String behavior)static booleanisAjaxScript(String script)static booleanisWidget(org.openqa.selenium.WebElement element)static voidsendKeys(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.
-
-
-
Method Detail
-
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)
-
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 tovalue- the value to send to the input
-
-