Thread

Skip Navigation LinksForums > Rapise Forums > Rapise Issues & Questions > What functions are suppor...

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

Tuesday, March 13, 2012

/**
 * 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
Adam SAdam S
re: Adam S on Tuesday, March 13, 2012
Tuesday, March 13, 2012
We will be adding these to the main help documentation in Rapise 1.4.
Tagged
Statistics
  • Started: 3/13/2012
  • Last Reply: 3/13/2012
  • Replies: 1
  • Views: 779
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.