- storeHtmlSource ( variableName )
- Returns the entire HTML source between the opening and
closing "html" tags.
- Returns:
- the entire HTML source
- storeLocation ( variableName )
- Gets the absolute URL of the current page.
- Returns:
- the absolute URL of the current page
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
Pages
- Training Details
- Manual + QTP + Selenium
- QTP Scripting for BEGINNERs
- QTP INTERMEDIATE
- EXPERT QTP
- VB Script
- Encrypting a String in QTP
- QTP Scripts
- QTP questions and answers
- Selenium Code Links
- Selenium Framework
- Java OOPs Concepts
- JDBC Connection
- TestNG Build.xml code
- pom.xml
- CONFIGURE ECLIPSE WITH CUCUMBER
- SQL Commands
- EVENT LISTENERS IN SELENIUM WEBDRIVER
- ContactUs
Total Pageviews
Monday, 17 December 2012
Selenium Accessors part 5
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment