Ranorex

English|Deutsch

Web Testing

print friendly page
This Documentation is only for Ranorex 1.x versions.

Click here for the Ranorex 2.0 documentation

Ranorex Web Testing

The Ranorex WebTesting interface provides two general ways to automate web pages and its elements. The main task in automating web pages is to find the desired web elements as fast as possible.

RanoreXPath

Similar to HTML XPath, the RanoreXPath provides a simple search mechanism to find single or multiple web elements within a web page. Searching and automating web elements with RanoreXPath can be done easily. With the help of Ranorex WebSpy it is possible to identify web elements without a deeper knowledge of how the web page is structured.

Standard Methods

In addition to RanoreXPath, Ranorex WebTesting also supports the common Ranorex way of finding elements within a web page. Methods like FindChild, FindChildren or properties like NextSibling, PreviousSibling or Parent allow fast and easy navigation through a web document. Moreover a set of methods supports the search for the most commonly used web elements in a web page  like FindLink, FindImage, FindInput or FindForm, allowing faster code implementation.

For faster analysis and exploration, the Ranorex WebSpy application provides several features to learn more about the structure and content of different types of web pages. Regardless how one chooses to search for web elements within a page, Ranorex web automation code is based on two main classes.

WebDocument

The WebDocument object always represents the root node of a web page. Each web testing application requires at least one WebDocument object. This class is mainly used to initialize web automation by opening a new web site or by finding an existing document within a browser application. The search for WebElement objects can also be started from a WebDocument object.

WebElement

An object of type WebElement corresponds to a single HTML node. Child or parent nodes (also objects of type WebElement) can be found either by using a RanoreXPath or the standard methods for finding children, parents or siblings of an element.