 | IHostOpenBrowser Method (String, String, String, Boolean, Boolean, Boolean, Boolean, Boolean) |
Note: This API is now obsolete.
Opens a web page in the specified browser.
Namespace:
Ranorex.Core
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax[ObsoleteAttribute("This method is obsolete, use int OpenBrowser(string url, string browserName, string browserArgs, bool killExisting, bool maximized, bool clearCache, bool incognitoMode, bool clearCookies, bool instrument) instead")]
int OpenBrowser(
string url,
string browserName,
string browserArgs,
bool killExisting,
bool maximized,
bool clearCache,
bool incognitoMode,
bool clearCookies
)<ObsoleteAttribute("This method is obsolete, use int OpenBrowser(string url, string browserName, string browserArgs, bool killExisting, bool maximized, bool clearCache, bool incognitoMode, bool clearCookies, bool instrument) instead")>
Function OpenBrowser (
url As String,
browserName As String,
browserArgs As String,
killExisting As Boolean,
maximized As Boolean,
clearCache As Boolean,
incognitoMode As Boolean,
clearCookies As Boolean
) As IntegerParameters
- 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. - clearCache
- Type: SystemBoolean
Specifies whether cache should be cleared on browser start. - incognitoMode
- Type: SystemBoolean
Specifies whether the browser should start in incognito mode - clearCookies
- Type: SystemBoolean
Specifies whether cookies should be deleted on browser start.
Return Value
Type:
Int32The process ID of the browser.
See Also