Class AbstractInputComponent
java.lang.Object
org.primefaces.selenium.AbstractPrimePageFragment
org.primefaces.selenium.component.base.AbstractComponent
org.primefaces.selenium.component.base.AbstractInputComponent
- All Implemented Interfaces:
org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsElement
- Direct Known Subclasses:
AbstractToggleComponent,AutoComplete,Calendar,CascadeSelect,Chips,ColorPicker,DatePicker,FileUpload,InputText,Menubar,Rating,SelectCheckboxMenu,SelectManyMenu,SelectOneButton,SelectOneMenu,SelectOneMenu,Slider,TriStateCheckbox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the input and guards AJAX for "clear" event.Copy the current value in the Input to the clipboard.voiddisable()Disables the input.voidenable()Enables the input/voidfocus()Sets tje focus to the element.org.openqa.selenium.WebElementThe HTML label assigned to this input.The HTML label text assigned to this input.org.openqa.selenium.WebElementgetInput()The input element reference.booleanIs this SelectOneMenu enabled?booleanIs the input using AJAX "change" or "valueChange" event?Paste the current value of the clipboard to the Input.voidSelects all text in the input component.Methods inherited from class org.primefaces.selenium.component.base.AbstractComponent
destroy, getWidgetByIdScript, getWidgetConfiguration, getWidgetConfigurationAsString, isAjaxified, isAjaxifiedMethods inherited from class org.primefaces.selenium.AbstractPrimePageFragment
getElementLocator, getId, getRoot, getWebDriver, getWrappedElement, setElementLocator, setWebDriverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openqa.selenium.TakesScreenshot
getScreenshotAsMethods inherited from interface org.openqa.selenium.WebElement
click, findElement, findElements, getAccessibleName, getAriaRole, getAttribute, getCssValue, getDomAttribute, getDomProperty, getLocation, getRect, getShadowRoot, getSize, getTagName, getText, isDisplayed, isSelected, sendKeys, submit
-
Constructor Details
-
AbstractInputComponent
public AbstractInputComponent()
-
-
Method Details
-
getInput
public org.openqa.selenium.WebElement getInput()The input element reference.- Returns:
- the
WebElementrepresenting the input.
-
isEnabled
public boolean isEnabled()Is this SelectOneMenu enabled?- Returns:
- true if enabled, false if not
-
isOnchangeAjaxified
public boolean isOnchangeAjaxified()Is the input using AJAX "change" or "valueChange" event?- Returns:
- true if using AJAX for onchange, change or valueChange
-
getAssignedLabel
public org.openqa.selenium.WebElement getAssignedLabel()The HTML label assigned to this input.- Returns:
- the
WebElementrepresenting the label.
-
getAssignedLabelText
The HTML label text assigned to this input.- Returns:
- the value of the label text
-
copyToClipboard
Copy the current value in the Input to the clipboard.- Returns:
- the value copied to the clipboard
-
pasteFromClipboard
Paste the current value of the clipboard to the Input.- Returns:
- the value pasted into the input
-
selectAllText
public void selectAllText()Selects all text in the input component. -
clear
public void clear()Clears the input and guards AJAX for "clear" event. -
enable
public void enable()Enables the input/ -
disable
public void disable()Disables the input. -
focus
public void focus()Sets tje focus to the element.
-