What functions are supported by the Navigator object when testing HTML?

Tuesday, March 13, 2012
Avatar

/**
 * Returns HTMLObject wrapping DOM element for a given 'xpath'. HTMLObject is a
 * {SeSObject} constructed by matching one of browser rules: {@link IEHTMLObject}, {@link MozillaHTMLObject}, etc.
 * @param xpath location path of a DOM element.
 * @param [url] URL. If new navigator is launched, the URL is used.
 * @param title
 * @param objInfo
 * @returns HTMLObject wrapping DOM element for a given 'xpath', 'null' if 'xpath' is invalid.
 */
Navigator.Find = function(/**String*/ xpath, /**String*/ url, /**String*/ title, /**SeSObjectInfo*/objInfo) /**SeSObject*/

/**
 * Executes given JavaScript statement in a browser and returns results.
 * @param scriptText JavaScript code.
 * @returns
 */
Navigator.ExecJS = function(/**String*/ scriptText)

/**
 * Opens a browser. If URL is specified, goes to URL.
 * @param url start URL for opening browser. Can be 'null'.
 */
Navigator.Open = function(/**String*/ url)

/**
 * Closes browser. Finishes session.
 * @param url
 */
Navigator.Close = function(url)

/**
 * Redirects browser to a specified URL.
 * @param url URL to navigate.
 */
Navigator.Navigate = function(/**String*/ url)

/**
 * Waits until browser alert with a given text. Wait timeout is 10 seconds.
 * @param msg alert text. Can be exact text or regular expression,
 * see 'exp' parameter of {@link checkCompare} function for more details.
 * @returns 'true' if browser alert had occurred, 'false' otherwise.
 */
Navigator.DoCheckAlert = function(msg) /**Boolean*/


/**
 * Waits until browser confirmation with a given text.  Wait timeout is 10 seconds.
 * @param msg confirmation text. Can be exact text or regular expression,
 * see 'exp' parameter of {@link checkCompare} function for more details.
 * @returns 'true' if browser confirmation popup is shown, 'false' otherwise.
 */
Navigator.DoCheckConfirmation = function(msg, result) /**Boolean*/

/**
 * Set text to return as a result of next browser 'prompt' request
 */
Navigator.DoSetExpectedPromptResult = function(expectedRes)

 /**
 * Set boolean value to return as a result of next browser 'confirm' request
 */
Navigator.DoSetExpectedConfirmResult = function(expectedRes)

 /**
 * Waits until browser prompt with a given text.  Wait timeout is 10 seconds.
 * @param msg prompt text. Can be exact text or regular expression,
 * see 'exp' parameter of {@link checkCompare} function for more details.
 * @returns 'true' if browser prompt popup is shown, 'false' otherwise.
 */
Navigator.DoCheckPrompt = function(msg, result) /**Boolean*/

1 Replies
Tuesday, March 13, 2012
Avatar
re: inflectra.david Tuesday, March 13, 2012
We will be adding these to the main help documentation in Rapise 1.4.

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Tuesday, March 13, 2012
  • Last Reply: Tuesday, March 13, 2012
  • Replies: 1
  • Views: 2614