Changing the Browser Type When Replaying Tests from the UI
To select a specific browser to replay a test, perform the following actions:
Record the test case against the web application.
For a list of the supported browsers for recording, see
Cross-Browser Testing.
Replay the test to ensure it works as expected.
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.
Select the
Web tab.
Select the browser on which you want to replay the test.
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.
Navigate to the location in which you want to save the frame file.
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.
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.
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']".
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.