Click or drag to resize

ApplicationManagerRunBrowser Method (BrowserType, PlatformType, String, String)

Launches a web browser of a particular bitness (32-bit or 64-bit) and, if a URL is specified, navigates to the web page.

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,
	PlatformType platform,
	string url = "",
	string additionalCommandLine = ""
)

Parameters

family
Type: SmartBear.TestLeftBrowserType
The browser's family name.
platform
Type: SmartBear.TestLeftPlatformType
The browser bitness - 32-bit, 64-bit or any.
url (Optional)
Type: SystemString
The URL of the web page to open in the browser.
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
Once the URL is specified, the method pauses execution until the browser loads the page and becomes ready to accept user input or until the certain timeout is reached. The default timeout value is 60000 ms, however it can be changed via the IDriver.Options.WebTesting.PageLoadTimeout option.
See Also