Skip to content

Commit

Permalink
Dev: Make webdriver accept local untrusted SSL certs (tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Aug 18, 2022
1 parent fe9fdee commit b5bf75a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/TestHelper.php
Expand Up @@ -460,6 +460,9 @@ public function getWebDriver()
$profile->setPreference('browser.tabs.remote.autostart', false);
$profile->setPreference('browser.tabs.remote.autostart.2', false);

$capabilities->setCapability('acceptSslCerts', true);
$capabilities->setCapability('acceptInsecureCerts', true);

$capabilities->setCapability(FirefoxDriver::PROFILE, $profile);
$webDriver = LimeSurveyWebDriver::create($host, $capabilities, 5000);
$success = true;
Expand Down

0 comments on commit b5bf75a

Please sign in to comment.