Confirmed users
3,816
edits
No edit summary |
|||
Line 361: | Line 361: | ||
|- | |- | ||
|document | |document | ||
|Document to reference, ex. controller.window.content.document for content or controller.window.document for chrome. | |Document to reference, ex. <code>controller.window.content.document</code> for content or <code>controller.window.document</code> for chrome. | ||
|- | |- | ||
|id | |id | ||
Line 367: | Line 367: | ||
|} | |} | ||
Grabs the node with the corresponding ID from the document and wraps it into an elementlib object. | Grabs the node with the corresponding ID from the document and wraps it into an elementlib object. | ||
===elementslib.Name(document, name)=== | ===elementslib.Name(document, name)=== | ||
Line 375: | Line 374: | ||
|- | |- | ||
|document | |document | ||
|Document to reference, ex. controller.window.content.document for content or controller.window.document for chrome. | |Document to reference, ex. <code>controller.window.content.document</code> for content or <code>controller.window.document</code> for chrome. | ||
|- | |- | ||
|name | |name | ||
Line 381: | Line 380: | ||
|} | |} | ||
Grabs the node with the corresponding name attribute from the document and wraps it into an elementlib object. | Grabs the node with the corresponding name attribute from the document and wraps it into an elementlib object. | ||
===elementslib.Link(document, linkName)=== | |||
{| class="standard-table" | |||
|- | |||
|class="header"|Parameters | |||
|- | |||
|document | |||
|Document to reference, ex. <code>controller.window.content.document</code> for content or <code>controller.window.document</code> for chrome. | |||
|- | |||
|linkName | |||
|The name of the link on a page, the part between the <a> and </a> tags. Usually it's what you see on the screen when you're looking at a link. | |||
|} | |||
Grabs the link element and wraps it into an element object. Note this is case sensitive. | |||
===elementslib.XPath(document, xpath)=== | |||
{| class="standard-table" | |||
|- | |||
|class="header"|Parameters | |||
|- | |||
|document | |||
|Document to reference, ex. <code>controller.window.content.document</code> for content or <code>controller.window.document</code> for chrome. | |||
|- | |||
|xpath | |||
|The XPath query to the node you wish to retrieve. | |||
|} | |||
You can generate the XPath statement from the DOM Explorer in the Mozmill IDE. | |||
===elementslib.XPath(document, xpath)=== | |||
{| class="standard-table" | |||
|- | |||
|class="header"|Parameters | |||
|- | |||
|document | |||
|Document to reference, ex. <code>controller.window.content.document</code> for content or <code>controller.window.document</code> for chrome. | |||
|- | |||
|xpath | |||
|The XPath query to the node you wish to retrieve. | |||
|} | |||
You can generate the XPath statement from the DOM Explorer in the Mozmill IDE. | |||
===elementslib.Lookup(document, lookupExpression)=== | |||
{| class="standard-table" | |||
|- | |||
|class="header"|Parameters | |||
|- | |||
|document | |||
|Document to reference, ex. <code>controller.window.content.document</code> for content or <code>controller.window.document</code> for chrome. | |||
|- | |||
|lookupExpression | |||
|The lookupExpression to use | |||
|} | |||
The lookup expression is automatically generated by Mozmill IDE when it detects an anonymous element that cannot be found by any other means. |