Starts with no held controls/widgets.
Adds a tag contents to the form.
Used by the page object to set widgets labels to external label tags.
void
attachLabelBySelector
(SimpleSelector $selector, $label)
-
SimpleSelector
$selector: Criteria to apply.
-
$label
Absolute URL of the target.
ID field of form for unique identification.
string
getId
()
Accessor for method of form submission.
string
getMethod
()
Extracts current value from form.
string/array
getValue
(SimpleSelector $selector)
-
SimpleSelector
$selector: Criteria to apply.
Test to see if a form has an image control.
boolean
hasImage
(SimpleSelector $selector)
-
SimpleSelector
$selector: Criteria to apply.
Test to see if a form has a submit button.
boolean
hasSubmit
(SimpleSelector $selector)
-
SimpleSelector
$selector: Criteria to apply.
Sets the frame target within a frameset.
void
setDefaultTarget
(string $frame)
-
string
$frame: Name of frame.
Sets a widget value within the form.
boolean
setField
(SimpleSelector $selector, string $value, [ $position = false])
-
SimpleSelector
$selector: Criteria to apply.
-
string
$value: Value to input into the widget.
-
$position
Simply submits the form without the submit button value. Used when there is only one button or it is unimportant.
hash
submit
()
Gets the submit values for a selected button.
SimpleEncoding
submitButton
(
SimpleSelector $selector, [
hash $additional =
false])
-
SimpleSelector
$selector: Criteria to apply.
-
hash
$additional: Additional data for the form.
Gets the submit values for an image.
SimpleEncoding
submitImage
(
SimpleSelector $selector,
integer $x,
integer $y, [
hash $additional =
false])
-
SimpleSelector
$selector: Criteria to apply.
-
integer
$x: X-coordinate of click.
-
integer
$y: Y-coordinate of click.
-
hash
$additional: Additional data for the form.
Combined action attribute with current location to get an absolute form target.
-
string
$action: Action attribute from form tag.
-
SimpleUrl
$base: Page location.
-
&$page