Click or drag to resize
Ranorex

HostOpenBrowser Method (String, String, String, Boolean, Boolean, Boolean, 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
Syntax
public int OpenBrowser(
	string url,
	string browserName,
	string browserArgs,
	bool killExisting,
	bool maximized,
	bool clearCache,
	bool incognitoMode,
	bool clearCookies
)

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.
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: Int32
The process ID of the browser.

Implements

IHostOpenBrowser(String, String, String, Boolean, Boolean, Boolean, Boolean, Boolean)
See Also