 | HostOpenBrowser Method (String, String, 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,
bool killExisting
)
Public Function OpenBrowser (
url As String,
browserName As String,
killExisting 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" or "chrome". - killExisting
- Type: SystemBoolean
Specifies whether any running browser instances should be closed first.
Return Value
Type:
Int32The process ID of the browser.
See Also