Namespace for the core WebAii framework functionality.

Classes

  ClassDescription
Actions
Generic action support for all browser types.
Browser
Class represents a browser instance managed by the Manager. This object exposes all the browser specific information and methods to automate the underlying browser that this instance represents.
Desktop
Class representing the desktop input devices. Mouse and Keyboard.
ElementFinder
Provides infrastructure for accessing elements defined by FindParamAttribute on test methods and classes. Replaces the Find.Elements dictionary which has been obsoleted.
Find
Class provides quick search routines for finding an element(s) within a document.
FrameInfo
Information regarding a specific frame
FramesCollection
Collection of frames (Browser objects)
HtmlFindClause
An Html specific find clause.
HtmlFindExpression
An Html find expression. This expression replaced FindParams that are being depreciated.
Log
Log support for the framework and test cases.
Manager
This class manages the life spans and instances of all browser objects in the framework. It also manages the communication pipeline between the framework and all browsers.
MappingsCollection
A general purpose collection
Settings
Class representing the settings to be used when initializing the framework.
SettingsConfigSectionHandler
Settings object config section handler. Use this object to read a Settings config section in a .config file.

Examples

CopyC#
You can persist the settings for your application/test cases in a config file.

The following is a sample config file that holds certain settings. Any settings
not specified in this section, their values will be set to the system defaults:


<?xml version="1.0" encoding="utf-8" ?>
   <configuration>
       <configSections>
           <section name="WebAii.Settings" type="ArtOfTest.WebAii.Core.SettingsConfigSectionHandler,ArtOfTest.WebAii"/>
       </configSections>

   <WebAii.Settings
       defaultBrowser="InternetExplorer"
       logLocation="D:\Log\"
       executionTimeout="30000"
       clientReadyTimeout="20000"
       localWebServer="None";
       webAppPhysicalPath="c:\Inetpub\wwwroot\MyApplication"
       enableScriptLogging="false"
       queryEventLogErrorsOnExit="false"
       enableUILessRequestViewing="false"
       baseUrl="http://www.testsite.com/"
       executionDelay="0"
       annotateExecution="false"
       annotationMode="All"
       logAnnotations="false"
       simulatedMouseMoveSpeed="0.3f"
       waitCheckInterval="500"
       aspNetDevServerPort="-1"
       createLogFile="true"
       killBrowserProcessOnClose="false"
       recycleBrowser="false"
       useHttpProxy="false"
       enableSilverlight="false"
       xMultiMgr="false"
       silverlightConnectTimeout="30000"
   />

   </configuration>


In your code, you can get these settings by using the SettingsConfigSectionHandler like this:

SettingsConfigSectionHandler settingsSection = 
            (SettingsConfigSectionHandler)ConfigurationManager.GetSection("WebAii.Settings");
Settings mySettings = new Settings(settingsSection);

You can then use mySettings to pass in to the Manager constructor.
TreeBuilder
This class builds the a strongly-typed markup elements tree.

Enumerations

  EnumerationDescription
AnnotationMode
The different annotation modes
BrowserCacheType
The different common categories of browser caching.
BrowserType
The browser type. (i.e. firefox, internet explorer ...etc).
ElementSyncMethod
The different type of element-dom synchronization supported by the framework and the SyncManager.
FindReferenceType
Defines which reference type the Find object is using.
HtmlSearchType
Different types of supported find expressions.
LocalWebServerType
Type of local web servers available for tests.
LogType
The types of logging available in WebAii.
MouseClickType
The different types of mouse events to perform.
MouseWheelTurnDirection
The mouse wheel turn directions.
ScriptEventType
Type of script events that can be invoked on an html element.
ScrollToVisibleType
Used to configure what the default scroll to visible behavior is.