Parses a page ready to access it's contents.
Closes the most recently opened form.
void
acceptFormEnd
()
Opens a form. New widgets go here.
Takes a single frame tag and stashes it in the current frame set.
Closes the most recently opened frameset.
void
acceptFramesetEnd
()
Opens a frameset. A frameset may contain nested frameset tags.
void
acceptFramesetStart
( &$tag, SimpleFramesetTag $tag)
-
SimpleFramesetTag
$tag: Tag to accept.
-
&$tag
Closes the most recently opened label.
void
acceptLabelEnd
()
Opens a label for a described widget.
Marker for end of complete page. Any work in progress can now be closed.
void
acceptPageEnd
()
Clears the frame focus. Does nothing for a leaf page.
void
clearFrameFocus
()
Expands expandomatic URLs into fully qualified URLs.
Accessor for last Authentication type. Only valid straight after a challenge (401).
string
getAuthentication
()
Base URL if set via BASE tag page url otherwise
Accessor for a form element value within a page.
string/boolean
getField
(SimpleSelector $selector)
-
SimpleSelector
$selector: Field finder.
Finds a held form by the form ID. A way of identifying a specific form when we have control of the HTML code.
Finds a held form by image using a selector.
Will only search correctly built forms.
SimpleForm
&getFormByImage
(
SimpleSelector $selector)
-
SimpleSelector
$selector: Image finder.
Finds a held form by button label. Will only search correctly built forms.
SimpleForm
&getFormBySubmit
(
SimpleSelector $selector)
-
SimpleSelector
$selector: Button finder.
Accessor for current frame focus. Will be false as no frames.
array
getFrameFocus
()
Fetches a list of loaded frames.
array/string
getFrames
()
Accessor for frame name and source URL for every frame that will need to be loaded. Immediate children only.
boolean/array
getFrameset
()
Accessor for raw headers of page.
string
getHeaders
()
Original request method.
string
getMethod
()
Accessor for current MIME type.
string
getMimeType
()
Accessor for raw text of page.
string
getRaw
()
Accessor for last Authentication realm. Only valid straight after a challenge (401).
string
getRealm
()
Original request as bytes sent down the wire.
mixed
getRequest
()
Original request data.
mixed
getRequestData
()
Accessor for HTTP response code.
integer
getResponseCode
()
Accessor for plain text of page as a text browser would see it.
string
getText
()
Accessor for parsed title.
string
getTitle
()
Accessor for last error.
string
getTransportError
()
Accessor for a URL by the id attribute.
-
string
$id: Id attribute of link.
Accessor for a list of all links.
array
getUrls
()
Accessor for URLs by the link label. Label will match regardess of whitespace issues and case.
array
getUrlsByLabel
(string $label)
-
string
$label: Text of link.
Test for the presence of a frameset.
boolean
hasFrames
()
Sets a field on each form in which the field is available.
boolean
setField
(SimpleSelector $selector, string $value, [ $position = false])
-
SimpleSelector
$selector: Field finder.
-
string
$value: Value to set field to.
-
$position
Sets the focus by name. Always fails for a leaf page.
boolean
setFrameFocus
(string $name)
-
string
$name: Chosen frame.
Sets the focus by index. The integer index starts from 1.
boolean
setFrameFocusByIndex
(integer $choice)
-
integer
$choice: Chosen frame.
Test to see if link is an absolute one.
boolean
_linkIsAbsolute
(string $url)
-
string
$url: Url to test.
Sets the base url for the page.
Sets the title tag contents.