Class ComponentUtils
java.lang.Object
org.primefaces.selenium.component.base.ComponentUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic 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 Details
-
hasAjaxBehavior
-
hasBehavior
-
isWidget
public static boolean isWidget(org.openqa.selenium.WebElement element) -
isAjaxScript
-
getWidgetConfiguration
-
getWidgetByIdScript
-
sendKeys
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
-