Description
Use the Run method to launch the web browser specified by the BrowserType property and open the web page specified by the PageAddress property in the browser.
Declaration
BrowserTestedAppObj.Run(Count, IgnoreRunning, Timeout)
| BrowserTestedAppObj | An expression, variable or parameter that specifies a reference to a BrowserTestedApp object | |||
| Count | [in] | Optional | Integer | Default value: -1 |
| IgnoreRunning | [in] | Optional | Boolean | Default value: False |
| Timeout | [in] | Optional | Integer | Default value: -1 |
| Result | A Browser object |
|||
Applies To
The method is applied to the following object:
Parameters
The BrowserTestedApp.Run method has three optional parameters. Currently, all of them are ignored and reserved for future implementation.
Count
IgnoreRunning
Timeout
Result Value
A Browser object that corresponds to the launched web browser instance and provides access to the open web pages.
Remarks
-
This method is available for Web applications only if the Use special runtime object check box is selected in the TestedApps editor. Otherwise, the
Runmethod is used. -
Sometimes, your application may hang when you use the
TestedApp.Runmethod. The issue is that to call the application process, this method uses theWaitForInputIdlemethod, which is part of Win32 API. WhenWaitForInputIdlehangs, TestComplete hangs as well. To avoid this, use the following workaround: create a batch file (.bat) that will call your application and add this file to the list of tested applications instead of your application. -
To close the application under test, you can use the
TestedApp.CloseorTestedApp.Terminatemethod. To close any process in the system, callProcess.CloseorProcess.Terminate.
See Also
Terminate Method
Close Method
Close Action (Process and Browser Objects)
Terminate Method (Process and Browser Objects)
Editing Web Application Parameters
