SELENIUM2 launching the browser
2. Use the configuration to start Firefox
(1) Loading the browser using Firefox's local configuration
To load the browser using the local configuration, the code is as follows.
After running this way, you can see that plugins such as Firebug have been started.
Exercise 2: After you load the browser, automatically open the Firebug Network tab and export to a file.
1) Install the plugin netexport (download), the export button will be generated in the Firebug panel. The exported Har file can be viewed using HttpWatch (download).
2) The Firebug Network tab opens automatically
On the About:config page in Firefox, you can find the Allpagesactivation property on, which is configured as follows.
3) automatic Network log Export
--Export Address settings
--Auto-save Har settings by lighting the setting of the export green light
--Add refresh at the end of the code, as follows
(2) Start the Firefox configuration on machine A on machine B
1) Copy the Profiles folder on machine A to the Files folder
The path is "C:\Users\admin\AppData\Roaming\Mozilla\Firefox\Profiles\gehvgmfb.default".
or open the Firefox browser, click Help and select the "Troubleshooting Information" menu item to open the Troubleshooting Information tab. In the "Application Profile" section, click the Show Folder button to open a window to display your profile.
2) Use configuration to start the browser
(3) Set profile when Firefox is started
1) Enter About:config in the Firefox address bar to see which parameters can be set
2) Example: Set the Save address of the browser download file
012-Start Firefox with configuration