Click or drag to resize
Ranorex

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
Syntax
public int OpenBrowser(
	string url,
	string browserName,
	string browserArgs,
	bool killExisting,
	bool maximized
)

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