BrowserBaseState Class

Description

Ensures that the browser that is specified by the Executable property is running and ready for testing. The base state additionally navigates to the URL that is specified by the Url property and brings the browser to the front. The browser base state is executed as follows:
  • Try to attach the agent to the browser.
    • If the test object, which is specified by the Locator property, is found, the base state navigates to the given URL, brings the browser to the front, and returns the found test object.
    • If the test object is not found the browser is started with the command line as specified in browserBaseStateInfo and the agent attaches to the browser.
  • The agent waits until the test object is found. The timeout can be specified with the option Options.ObjectResolveTimeout. To change the timeout see the SetOption method of the Desktop class.
    • If the test object is found within the given timeout the base state navigates to the given URL, brings the browser to the front and returns the found test object.
    • If no test object is found after the timeout an Exception is thrown.

Inheritance Hierarchy

BrowserBaseState does not derive from any class, and no classes derive from it.

Syntax

C#
public class BrowserBaseState: IBaseState
VB
'Declaration
Public Class BrowserBaseState _
Implements IBaseState

Properties

Name Description
CommandLineArguments Gets or sets the command-line arguments. (Inherited from BaseState)
CommandLinePattern Gets or sets the command-line pattern. (Inherited from BaseState)
ExecutablePattern Gets or sets the executable pattern. (Inherited from BaseState)
Executable Gets the name of the executable. (Inherited from BaseState)
Locator Returns the locator of the executable. (Inherited from BaseState)
TechDomains Gets or sets the list of tech domains to be used for testing. (Inherited from BaseState)
Url Gets the Url to navigate to.
WorkingDirectory Gets or sets the working directory. (Inherited from BaseState)