OFBiz SeleniumXml Introduction with HTTPS
How to setup in firefox browser?
The problem for https is that the seleniumRC 1.0 and later will be runs in a separate profile
automatically when the Selenium test is opening a new session for the Firefox browser the browser will
need a security certificate every time. When this occurs the browser displays security pop up, and these
pop up cannot be closed using SeleniumRC . So how to solve this?
Create a separate Firefox profile for your tests ( adding a https certificate or install some addons)
For Ubuntu Linux :
- Make sure all your Firefox instances are closed .
- Open a new Terminal and type the command firefox -p -no-remote in the terminal then press enter. The pop up window will appear.
After that click “Start Firefox” and configure settings based on suggestion below
warrning*
Be sure to put your profile in a new folder separate from the default!!!
The Firefox profile manager tool will delete all files in a folder if you delete
a profile, regardless of whether they are profile files or not.
- Suggested settings for your Selenium Profile
From “View\Toolbars” tab, uncheck “Bookmarks Toolbar”
Right click from toolbar and click “Customize”
Remove “Google search” by dragging it to the “Customize Toolbar” window
From the “Customize Toolbar” window, click “Use Small Icons” check box then hit “Done”
Click “Edit\Preferences” then set the following:
“Main” tab
- set Home Page to “about:blank”
- uncheck “Show the Downloads..” option
“Tabs” tab
- Select “a new window” for new pages
- Uncheck all warning options
“Content” tab
- uncheck “Block pop-up” windows option
“Privacy” tab
- uncheck all “History” options
“Security” tab
- uncheck all “Security” options
- click “Settings” and uncheck all warning options
“Advanced” tab
- Uncheck “autoscrolling” option from “General” tab
- uncheck “warn me …” and “Ssearch Engines”option from “Update” tab
At the file “seleniumXml.properties”.
Change browser=*firefox
To browser=*firefox /usr/lib/firefox-3.0.8/firefox
(*** firefox path)
At the file “runSeleniumServer.sh”
"$JAVA" -jar ../../framework/testtools/lib/selenium-server.jar
-firefoxProfileTemplate "put path to the profile dir"
-trustAllSSLCertificates -singleWindow -timeout 240
Note : Please follows the link
if your found the problem “ofbiz.org cert is expired causes peer not authenticated“.