Changing the Browser Type When Replaying Tests from the UI

This topic describes how to change the browser type for replay in the UI. For information on how you to set the browser when executing automated tests from a command-line interface, for example from a CI server or from Silk Central, see Setting the Browser when Running Automated Tests.

To select a specific browser to replay a test, perform the following actions:

  1. Record the test case against the web application. For a list of the supported browsers for recording, see Cross-Browser Testing.
  2. Replay the test to ensure it works as expected.
  3. Click Configure Applications on the Basic Workflow bar. If you do not see Configure Applications on the Basic Workflow bar, ensure that the default Agent is set to the Open Agent. The Select Application dialog box opens.
  4. Select the Web tab.
  5. Select the browser on which you want to replay the test.
  6. Click OK. If you have selected an existing instance of Google Chrome, Silk Test Classic checks whether the automation support is included. If the automation support is not included, Silk Test Classic restarts Google Chrome. The Choose name and folder of the new frame file page opens. Silk Test Classic configures the recovery system and names the corresponding file frame1.inc by default.
  7. Navigate to the location in which you want to save the frame file.
  8. In the File name text box, type the name for the frame file that contains the default base state and recovery system. Then, click Save.
  9. Copy the window declaration for the additional browser into the original frame1.inc file. frame1.inc must not contain two window declarations of the same name, so rename the Internet Explorer declaration to InternetExplorer and the new declaration to another name, for example Firefox.
  10. To ensure that each of the window declarations works with the appropriate browser type, add the browsertype property to the locator. For example, "//BrowserApplication[@browsertype='Firefox']".
  11. Determine which browser you want to use and change the const wDynamicMainWindow = <browsertype> to use that browser and then replay the test. For example, you might type const wDynamicMainWindow = InternetExplorer.