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,DatePicker,FileUpload,InputText,Rating,SelectManyMenu,SelectOneButton,SelectOneMenu,Slider,TriStateCheckbox
public abstract class AbstractInputComponent extends AbstractComponent
-
-
Constructor Summary
Constructors Constructor Description AbstractInputComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the input and guards AJAX for "clear" event.StringcopyToClipboard()Copy the current value in the Input to the clipboard.voiddisable()Disables the input.voidenable()Enables the input/org.openqa.selenium.WebElementgetAssignedLabel()The HTML label assigned to this input.StringgetAssignedLabelText()The HTML label text assigned to this input.org.openqa.selenium.WebElementgetInput()The input element reference.booleanisEnabled()Is this SelectOneMenu enabled?booleanisOnchangeAjaxified()Is the input using AJAX "change" or "valueChange" event?StringpasteFromClipboard()Paste the current value of the clipboard to the Input.voidselectAllText()Selects all text in the input component.-
Methods inherited from class org.primefaces.selenium.component.base.AbstractComponent
getWidgetByIdScript, getWidgetConfiguration, getWidgetConfigurationAsString, isAjaxified, isAjaxified
-
Methods inherited from class org.primefaces.selenium.AbstractPrimePageFragment
getElementLocator, getId, getRoot, getWebDriver, getWrappedElement, setElementLocator, setWebDriver
-
-
-
-
Method Detail
-
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
public String getAssignedLabelText()
The HTML label text assigned to this input.- Returns:
- the value of the label text
-
copyToClipboard
public String copyToClipboard()
Copy the current value in the Input to the clipboard.- Returns:
- the value copied to the clipboard
-
pasteFromClipboard
public String 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.
-
-