RanorexRanorex Documentation
OpenBrowser Method (url, browserName, browserArgs, killExisting, maximized)
NamespacesRanorexHostOpenBrowser(String, String, String, Boolean, Boolean)
Opens a web page in the specified browser.
Declaration Syntax
C#Visual BasicVisual C++
public int OpenBrowser(
	string url,
	string browserName,
	string browserArgs,
	bool killExisting,
	bool maximized
)
Public Function OpenBrowser ( _
	url As String, _
	browserName As String, _
	browserArgs As String, _
	killExisting As Boolean, _
	maximized As Boolean _
) As Integer
public:
int OpenBrowser(
	String^ url, 
	String^ browserName, 
	String^ browserArgs, 
	bool killExisting, 
	bool maximized
)
Parameters
url (String)
The URL of the web page to open.
browserName (String)
The name of the browser to open. Can either be "firefox" or "ie".
browserArgs (String)
Additional command line arguments to pass to the browser.
killExisting (Boolean)
Specifies whether any running browser instances should be closed first.
maximized (Boolean)
Specifies whether the started browser instances should be started maximized.
Return Value
The process ID of the browser.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 3.2.3.16825 (3.2.3.16825)