Click or drag to resize

ApplicationManagerRunBrowser Method (BrowserType, String, Int32, String)

Launches a web browser and, if a URL is specified, navigates to the web page.

The method pauses execution until the browser loads the page and becomes ready to accept user input or until the specified timeout is reached.

Namespace:  SmartBear.TestLeft
Assembly:  SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
Syntax
public IWebBrowser RunBrowser(
	BrowserType family,
	string url,
	int waitTime,
	string additionalCommandLine = ""
)

Parameters

family
Type: SmartBear.TestLeftBrowserType
The browser's family name.
url
Type: SystemString
The URL of the web page to open in the browser.
waitTime
Type: SystemInt32
The time (in milliseconds) to wait until the browser loads the page and becomes ready to accept user input.
additionalCommandLine (Optional)
Type: SystemString
Command-line arguments for the browser.

Return Value

Type: IWebBrowser
The IWebBrowser object that corresponds to the launched browser instance.
Exceptions
ExceptionCondition
WebExceptionThrown if there are network problems.
ApiExceptionThrown if the application cannot be launched.
OldVersionResponseExceptionThrown if an earlier version of the test engine (TestComplete/TestExecute) is used.
Remarks

If you have both 32- and 64-bit versions of a browser installed (for example, 32-bit and 64-bit editions of Internet Explorer on a 64-bit version of Windows), TestLeft will launch the 32-bit version of the browser.

See Also