OFBiz SeleniumXml Introduction with HTTPS How to setup in firefox browser? The problem for https is that the selenium­RC 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 Selenium­RC . So how to solve this? Create a separate Firefox profile for your tests ( adding a https certificate or install some add­ons)
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 “Search Engines”option from “Update” tab
<para/> <!--para> Set certificate for your firefox profile type and enter <ulink type="http" url="https://localhost:8443/"></ulink> (* An url you want to get certificate.) then add an exception </para> <screenshot> <graphic fileref="/images/seleniums/profile2.png" width="400"></graphic> </screenshot--> </section> <section> <title/> <para> <orderedlist> <listitem> <para>At the file “seleniumXml.properties”.</para> </listitem> <listitem> <para>Change browser=*firefox</para> </listitem> <listitem> <para>To browser=*firefox /usr/lib/firefox-3.0.8/firefox</para> </listitem> </orderedlist> </para> <para>(*** firefox path)</para> </section> <section> <title/> <para> <orderedlist> <listitem> <para>At the file “runSeleniumServer.sh” </para> </listitem> <listitem> <para>"$JAVA" -jar ../../framework/testtools/lib/selenium-server.jar </para> </listitem> <listitem> <para>firefoxProfileTemplate "put path to the profile dir" </para> </listitem> <listitem> <para>trustAllSSLCertificates -singleWindow -timeout 240 </para> </listitem> </orderedlist> </para> </section> <section> <title>Note : Please follows the link if your found the problem “ofbiz.org cert is expired causes peer not authenticated“.