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 TypeMethodDescriptionvoid
clear()
Clears the input and guards AJAX for "clear" event.Copy the current value in the Input to the clipboard.void
disable()
Disables the input.void
enable()
Enables the input/void
focus()
Sets tje focus to the element.org.openqa.selenium.WebElement
The HTML label assigned to this input.The HTML label text assigned to this input.org.openqa.selenium.WebElement
getInput()
The input element reference.boolean
Is this SelectOneMenu enabled?boolean
Is the input using AJAX "change" or "valueChange" event?Paste the current value of the clipboard to the Input.void
Selects all text in the input component.Methods inherited from class org.primefaces.selenium.component.base.AbstractComponent
destroy, getWidgetByIdScript, getWidgetConfiguration, getWidgetConfigurationAsString, isAjaxified, isAjaxified
Methods inherited from class org.primefaces.selenium.AbstractPrimePageFragment
getElementLocator, getId, getRoot, getWebDriver, getWrappedElement, setElementLocator, setWebDriver
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openqa.selenium.TakesScreenshot
getScreenshotAs
Methods 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
WebElement
representing 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
WebElement
representing 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.
-