At times you may want to launch a separate browser window for a script rather than using the existing browser window. For instance, when you execute a Silk Test Workbench script from Silk Central Test Manager, the script uses the existing Silk Central window. To return to Silk Central, the user must click Back in the browser window. To avoid this behavior you can configure your script to launch a separate browser window for tests that you will execute from Silk Central.
Dim applicationProcess As New Process()where applicationProcess is the name of the application that you want to start. For example, to start Internet Explorer, type:
Dim ieProcess As New Process()
Dim psi As New ProcessStartInfo() psi.FileName = "applicationexecutable.exe"where applicationexecutable.exe is the name of the executable file that launches your test application. For example to start Internet Explorer, type:
Dim psi As New ProcessStartInfo() psi.FileName = "C:\Program Files\Internet Explorer\iexplore.exe"
psi.Arguments = "http://demo.borland.com/InsuranceWebExtJS/index.jsf"
ieProcess.StartInfo = psi ieProcess.Start()