public class TextEntryNavigationAction extends NavigationAction
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
CLICK_NAVIGATION_ACTION, FORM_NAVIGATION_ACTION, LIST_SELECTION_NAVIGATION_ACTION, TEXT_ENTRY_NAVIGATION_ACTION
Constructor and Description |
---|
TextEntryNavigationAction()
Default constructor.
|
TextEntryNavigationAction(int navigationActionID,
ScrapeableFile scrapeableFile,
java.lang.String name,
ScrapeableFile targetScrapeableFile,
java.lang.String criteria,
java.lang.String formParametersToSet,
boolean invokedFromScript,
int sequence)
Initializes the action fully.
|
TextEntryNavigationAction(ScrapeableFile scrapeableFile)
Initializes an empty instance for the given scrapeable file.
|
TextEntryNavigationAction(TextEntryNavigationAction textEntryNavigationAction)
Creates a new
TextEntryNavigationAction based on an
existing one. |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAttributes()
Returns a list of possible attributes for this action
|
protected NavigationActionDoer |
getNavigationActionDoerForHtmlElement(com.gargoylesoftware.htmlunit.html.HtmlElement htmlElement)
Gets a
NavigationActionDoer based on a
HtmlElement . |
int |
getNavigationActionType()
Gets the numeric constant that represents the type
of the action.
|
addFormParameterToSet, compareTo, delete, dumpToLog, getCriteria, getFormParametersToSet, getFormParametersToSetAsSet, getFormParametersToSetAsSingleValue, getFormParameterToSet, getHtmlElementIdentifier, getHtmlElementIdentifierAttribute, getHtmlElementIdentifierValidSeqencesStringValue, getHtmlElementIdentifierValidSequences, getHtmlElementIdentifierValue, getID, getInvokedFromScript, getName, getNavigationActionDoers, getNumFormParametersToSet, getScrapeableFile, getSequence, getTargetScrapeableFile, getTargetScrapeableFileName, getView, removeFormParameterToSet, save, setCriteria, setFormParametersToSet, setFormParametersToSetAsSingleValue, setFormParameterToSetName, setFormParameterToSetValue, setHtmlElementIdentifier, setHtmlElementIdentifier, setHtmlElementIdentifierAttribute, setHtmlElementIdentifierValidSequences, setHtmlElementIdentifierValue, setID, setInvokedFromScript, setName, setScrapeableFile, setSequence, setTargetScrapeableFile, setTargetScrapeableFileName, setView
public TextEntryNavigationAction()
public TextEntryNavigationAction(ScrapeableFile scrapeableFile)
scrapeableFile
- The scrapeable file containing the action.public TextEntryNavigationAction(int navigationActionID, ScrapeableFile scrapeableFile, java.lang.String name, ScrapeableFile targetScrapeableFile, java.lang.String criteria, java.lang.String formParametersToSet, boolean invokedFromScript, int sequence)
navigationActionID
- The database ID.scrapeableFile
- The scrapeable file containing the action.name
- An identifier for the action.targetScrapeableFile
- The scrapeable file targeted by this action.criteria
- Used to determine which forms this action should
apply to.formParametersToSet
- A URL-type list of parameters that should be
set in the form before it gets submitted.invokedFromScript
- Whether or not the action is to be invoked from a
script.sequence
- The sequence of the action.public TextEntryNavigationAction(TextEntryNavigationAction textEntryNavigationAction)
TextEntryNavigationAction
based on an
existing one.textEntryNavigationAction
- A TextEntryNavigationAction
.public java.lang.String[] getAttributes()
NavigationAction
getAttributes
in class NavigationAction
protected NavigationActionDoer getNavigationActionDoerForHtmlElement(com.gargoylesoftware.htmlunit.html.HtmlElement htmlElement)
NavigationActionDoer
based on a
HtmlElement
.getNavigationActionDoerForHtmlElement
in class NavigationAction
htmlElement
- The HtmlElement
.NavigationActionDoer
.public int getNavigationActionType()
getNavigationActionType
in class NavigationAction