I use Perl and Selenium / Webdriver to write user interface tests. I know that I can use the Selenium::Firefox::Profile module to create profiles for Firefox.
I would like to use my default profile, or one created with Firefox profile manager. Is it possible to use an existing Firefox profile for tests?
This doesn't work:
my $ff_profile = Selenium::Firefox::Profile->new('default-1480098066829');
my $driver = Selenium::Remote::Driver->new(
'remote_server_addr' => 'localhost',
'browser_name' => 'firefox',
'firefox_profile' => $ff_profile,
'port' => '5555',
'marionette_enabled' => 1,
);
My default profile accepts a self-signed SSL certificate for an intranet page which must be tested. When Webdriver opens the page with a new profile, it fails because of Firefox certificate dialog.
If I cannot use my default profile, is there some way to add this certificate to Webdriver's new profile?