When i runn Selenium from a ruby file it open a new clean browser. This is a problem since I get Secure Connection Failed and has to add security certificate for every test, and that kind of destroys the purpos of automatic testing. But every thing works when it runns from the Selenium IDE, because the IDE runns in the standar browser where I already have aded this thing.
The code under is a example. How do i make this code... or another code, to start my regular browser insted of starting a clean version of it?
describe "test" do
before :all do
@browser = Selenium::Client::Driver.new \
:host => "localhost",
:port => 4444,
:browser => "*firefox",
:url => "
http://www.google.com/",
:timeout_in_second => 60
end
after :all do
@browser.close_current_browser_session
end
it "test1" do
@browser.start_new_browser_session
@browser.open "/"
@browser.type "q", "Selenium seleniumhq.org"
@browser.click "btnG", :wait_for => :page
assert @browser.text?("seleniumhq.org")
end
end
If that dos not work. Is there a way i can automaticly add those certificates?