ApplicationManagerRunBrowser Method (BrowserType, PlatformType, String, Int32, 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.
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,
PlatformType platform,
string url,
int waitTime,
string additionalCommandLine = ""
)
Public Function RunBrowser (
family As BrowserType,
platform As PlatformType,
url As String,
waitTime As Integer,
Optional additionalCommandLine As String = ""
) As IWebBrowser
Dim instance As ApplicationManager
Dim family As BrowserType
Dim platform As PlatformType
Dim url As String
Dim waitTime As Integer
Dim additionalCommandLine As String
Dim returnValue As IWebBrowser
returnValue = instance.RunBrowser(family,
platform, url, waitTime, additionalCommandLine)
public:
IWebBrowser^ RunBrowser(
BrowserType family,
PlatformType platform,
String^ url,
int waitTime,
String^ additionalCommandLine = L""
)
Parameters
- family
- Type: SmartBear.TestLeftBrowserType
The browser's family name. - platform
- Type: SmartBear.TestLeftPlatformType
The browser bitness - 32-bit, 64-bit or any. - 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:
IWebBrowserThe
IWebBrowser object that corresponds to the launched browser instance.
Exceptions See Also