 | HostOpenBrowser Method (String, String, String, Boolean, Boolean) |
Opens a web page in the specified browser.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic int OpenBrowser(
string url,
string browserName,
string browserArgs,
bool killExisting,
bool maximized
)
Public Function OpenBrowser (
url As String,
browserName As String,
browserArgs As String,
killExisting As Boolean,
maximized As Boolean
) As Integer
Parameters
- url
- Type: SystemString
The URL of the web page to open. - browserName
- Type: SystemString
The name of the browser to open. Can either be "firefox", "ie", "chrome", "chromium" or "edge". - browserArgs
- Type: SystemString
Additional command line arguments to pass to the browser. - killExisting
- Type: SystemBoolean
Specifies whether any running browser instances should be closed first. - maximized
- Type: SystemBoolean
Specifies whether the started browser instances should be started maximized.
Return Value
Type:
Int32The process ID of the browser.
See Also