Monday, 17 December 2012

Selenium Accessors part 5

storeHtmlSource ( variableName )
Returns the entire HTML source between the opening and closing "html" tags.
Returns:
the entire HTML source
Related Assertions, automatically generated:

storeLocation ( variableName )
Gets the absolute URL of the current page.
Returns:
the absolute URL of the current page
Related Assertions, automatically generated:

storeLogMessages ( variableName )
Return the contents of the log. This is a placeholder intended to make the code generator make this API available to clients. The selenium server will intercept this call, however, and return its recordkeeping of log messages since the last call to this API. Thus this code in JavaScript will never be called.
The reason I opted for a servercentric solution is to be able to support multiple frames served from different domains, which would break a centralized JavaScript logging mechanism under some conditions.
Returns:
all log messages seen since the last call to this API
Related Assertions, automatically generated:

storePrompt ( variableName )
Retrieves the message of a JavaScript question prompt dialog generated during the previous action. Successful handling of the prompt requires prior execution of the answerOnNextPrompt command. If a prompt is generated but you do not get/verify it, the next Selenium action will fail.
NOTE: under Selenium, JavaScript prompts will NOT pop up a visible dialog.
NOTE: Selenium does NOT support JavaScript prompts that are generated in a page's onload() event handler. In this case a visible dialog WILL be generated and Selenium will hang until someone manually clicks OK.
Returns:
the message of the most recent JavaScript question prompt
Related Assertions, automatically generated:

storeSelectedId ( selectLocator, variableName )
Gets option element ID for selected option in the specified select element.Arguments:
  • selectLocator - an element locator identifying a drop-down menu
  • variableName - the name of a variable in which the result is to be stored.
Returns:
the selected option ID in the specified select drop-down
Related Assertions, automatically generated:
  • assertSelectedId ( selectLocator, pattern )
  • assertNotSelectedId ( selectLocator, pattern )
  • verifySelectedId ( selectLocator, pattern )
  • verifyNotSelectedId ( selectLocator, pattern )
  • waitForSelectedId ( selectLocator, pattern )
  • waitForNotSelectedId ( selectLocator, pattern )

storeSelectedIds ( selectLocator, variableName )
Gets all option element IDs for selected options in the specified select or multi-select element.Arguments:
  • selectLocator - an element locator identifying a drop-down menu
  • variableName - the name of a variable in which the result is to be stored.
Returns:
an array of all selected option IDs in the specified select drop-down
Related Assertions, automatically generated:
  • assertSelectedIds ( selectLocator, pattern )
  • assertNotSelectedIds ( selectLocator, pattern )
  • verifySelectedIds ( selectLocator, pattern )
  • verifyNotSelectedIds ( selectLocator, pattern )
  • waitForSelectedIds ( selectLocator, pattern )
  • waitForNotSelectedIds ( selectLocator, pattern )

storeSelectedIndex ( selectLocator, variableName )
Gets option index (option number, starting at 0) for selected option in the specified select element.Arguments:
  • selectLocator - an element locator identifying a drop-down menu
  • variableName - the name of a variable in which the result is to be stored.
Returns:
the selected option index in the specified select drop-down
Related Assertions, automatically generated:
  • assertSelectedIndex ( selectLocator, pattern )
  • assertNotSelectedIndex ( selectLocator, pattern )
  • verifySelectedIndex ( selectLocator, pattern )
  • verifyNotSelectedIndex ( selectLocator, pattern )
  • waitForSelectedIndex ( selectLocator, pattern )
  • waitForNotSelectedIndex ( selectLocator, pattern )

storeSelectedIndexes ( selectLocator, variableName )
Gets all option indexes (option number, starting at 0) for selected options in the specified select or multi-select element.Arguments:
  • selectLocator - an element locator identifying a drop-down menu
  • variableName - the name of a variable in which the result is to be stored.
Returns:
an array of all selected option indexes in the specified select drop-down
Related Assertions, automatically generated:
  • assertSelectedIndexes ( selectLocator, pattern )
  • assertNotSelectedIndexes ( selectLocator, pattern )
  • verifySelectedIndexes ( selectLocator, pattern )
  • verifyNotSelectedIndexes ( selectLocator, pattern )
  • waitForSelectedIndexes ( selectLocator, pattern )
  • waitForNotSelectedIndexes ( selectLocator, pattern )

storeSelectedLabel ( selectLocator, variableName )
Gets option label (visible text) for selected option in the specified select element.Arguments:
  • selectLocator - an element locator identifying a drop-down menu
  • variableName - the name of a variable in which the result is to be stored.
Returns:
the selected option label in the specified select drop-down
Related Assertions, automatically generated:
  • assertSelectedLabel ( selectLocator, pattern )
  • assertNotSelectedLabel ( selectLocator, pattern )
  • verifySelectedLabel ( selectLocator, pattern )
  • verifyNotSelectedLabel ( selectLocator, pattern )
  • waitForSelectedLabel ( selectLocator, pattern )
  • waitForNotSelectedLabel ( selectLocator, pattern )

storeSelectedLabels ( selectLocator, variableName )
Gets all option labels (visible text) for selected options in the specified select or multi-select element.Arguments:
  • selectLocator - an element locator identifying a drop-down menu
  • variableName - the name of a variable in which the result is to be stored.
Returns:
an array of all selected option labels in the specified select drop-down
Related Assertions, automatically generated:
  • assertSelectedLabels ( selectLocator, pattern )
  • assertNotSelectedLabels ( selectLocator, pattern )
  • verifySelectedLabels ( selectLocator, pattern )
  • verifyNotSelectedLabels ( selectLocator, pattern )
  • waitForSelectedLabels ( selectLocator, pattern )
  • waitForNotSelectedLabels ( selectLocator, pattern )

storeSelectedValue ( selectLocator, variableName )
Gets option value (value attribute) for selected option in the specified select element.Arguments:
  • selectLocator - an element locator identifying a drop-down menu
  • variableName - the name of a variable in which the result is to be stored.
Returns:
the selected option value in the specified select drop-down
Related Assertions, automatically generated:
  • assertSelectedValue ( selectLocator, pattern )
  • assertNotSelectedValue ( selectLocator, pattern )
  • verifySelectedValue ( selectLocator, pattern )
  • verifyNotSelectedValue ( selectLocator, pattern )
  • waitForSelectedValue ( selectLocator, pattern )
  • waitForNotSelectedValue ( selectLocator, pattern )

storeSelectedValues ( selectLocator, variableName )
Gets all option values (value attributes) for selected options in the specified select or multi-select element.Arguments:
  • selectLocator - an element locator identifying a drop-down menu
  • variableName - the name of a variable in which the result is to be stored.
Returns:
an array of all selected option values in the specified select drop-down
Related Assertions, automatically generated:
  • assertSelectedValues ( selectLocator, pattern )
  • assertNotSelectedValues ( selectLocator, pattern )
  • verifySelectedValues ( selectLocator, pattern )
  • verifyNotSelectedValues ( selectLocator, pattern )
  • waitForSelectedValues ( selectLocator, pattern )
  • waitForNotSelectedValues ( selectLocator, pattern )

storeSelectOptions ( selectLocator, variableName )
Gets all option labels in the specified select drop-down.Arguments:
  • selectLocator - an element locator identifying a drop-down menu
  • variableName - the name of a variable in which the result is to be stored.
Returns:
an array of all option labels in the specified select drop-down
Related Assertions, automatically generated:
  • assertSelectOptions ( selectLocator, pattern )
  • assertNotSelectOptions ( selectLocator, pattern )
  • verifySelectOptions ( selectLocator, pattern )
  • verifyNotSelectOptions ( selectLocator, pattern )
  • waitForSelectOptions ( selectLocator, pattern )
  • waitForNotSelectOptions ( selectLocator, pattern )

storeTable ( tableCellAddress, variableName )
Gets the text from a cell of a table. The cellAddress syntax tableLocator.row.column, where row and column start at 0.Arguments:
  • tableCellAddress - a cell address, e.g. "foo.1.4"
  • variableName - the name of a variable in which the result is to be stored.
Returns:
the text from the specified cell
Related Assertions, automatically generated:
  • assertTable ( tableCellAddress, pattern )
  • assertNotTable ( tableCellAddress, pattern )
  • verifyTable ( tableCellAddress, pattern )
  • verifyNotTable ( tableCellAddress, pattern )
  • waitForTable ( tableCellAddress, pattern )
  • waitForNotTable ( tableCellAddress, pattern )

No comments:

Post a Comment