This section describes how you can enhance your cross-browser test set by testing with
Mozilla Firefox.
Silk4J supports recording actions and replaying tests on
Mozilla Firefox.
- When starting to test on
Mozilla Firefox, with no running instance of
Mozilla Firefox open,
Silk4J starts a new instance of
Mozilla Firefox. This new browser uses a temporary profile without add-ons and with an empty cache.
- When starting to test on an instance of
Mozilla Firefox which is already running,
Silk4J restarts
Mozilla Firefox with the same command line arguments that were used when the instance was initially started. This restart is required to
enable the
Silk4J automation support.
- The
Mozilla Firefox instance is closed when shutting down the Open Agent or when starting to test another application outside
Mozilla Firefox.
Tip: If you want to execute an existing test script with
Mozilla Firefox,
Micro Focus recommends that you use a base state or that you add a command to the test script to navigate to the URL.
While recording with
Silk4J on
Mozilla Firefox 52 or later,
Mozilla Firefox opens external links in a new tab, instead of a new window. Disable the
OPT_FIREFOX_SINGLE_WINDOW_MODE option in the
Browser options to open external links in a new window.
Example 1
If the running instance of
Mozilla Firefox was initially started with the command
C:/program files/Mozilla/firefox.exe www.borland.com,
Mozilla Firefox opens to
www.borland.com after the restart.
Example 2
If the running instance of
Mozilla Firefox was initially started with the command
C:/program files/Mozilla/firefox.exe,
Mozilla Firefox opens to
about:blank after the restart.