Browser

Use the Browser step type to manage browser instances during test run.

Note:

Beginning with release 8.55, PTF supports running multiple browser instances from a single PTF client. This enables you to toggle between any or all open browsers. For example, you could use this functionality to verify that an action from one browser instance would change the data displayed in another browser instance.

To identify and manage each instance, you can assign a name, using a string or a variable, when it is launched. If you do not specify a name parameter, then PTF will assign “browser_0” as a name for the first browser, then “browser_1” for the second browser, and so on. If the 2nd browser is opened due to using a specific FormFactor, then PTF uses the name “FormFactor”, similarly if it is opened due to a query, the name assigned is “query”.

PTF also assigns each instance an index value automatically, and you can use the index to refer to a specific instance. The first browser instantiated is assigned an index value of 0. The next browser instantiated will have an index value of 1, and so on. If a given browser is closed, then the index value for any browsers that were instantiated after that browser will decrease by 1, in other words the index is dynamically updated by PTF.

These are the actions associated with the Browser step type.