Click or drag to resize
Ranorex

IHostOpenBrowser Method (String, String)

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

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".

Return Value

Type: Int32
The process ID of the browser.
See Also