Click or drag to resize
Ranorex

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

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