WaitForNew
Description
Waits for a new browser instance to open, then continues test run in that browser instance.
Specify a timeout value in seconds in the Value column. The default is 10 seconds.
Parameters
| Parameter | Description |
|---|---|
|
name=value |
Optional parameter. Assigns a name to the new browser instance. This enables you to manage multiple browser instances by referring to them by their assigned name. You can use a string or a variable to specify the name. |
|
max=value |
True – maximizes the window for the new browser instance. False – keeps the existing window size for the new browser instance. The default is true. |
Example
The following example shows a PTF test step that uses the Browser.WaitForNew type/action. This step launches a new test application browser instance with the window maximized, assigns the name “browser1” to the browser instance, and waits 30 seconds before proceeding to the next test step. Test run then continues in the new browser instance.
| Type | Action | Recognition | Parameters | Value |
|---|---|---|---|---|
|
Browser |
WaitForNew |
|
name=”browser1”;max=true |
30 |