对于上下文,我正在运行带有硒和水豚的ruby-rspec。当我导航到app_host时,我在浏览器中遇到了InsecureCertificateError。如何将配置文件加载到selenium中以便忽略不受信任的证书?以下是我目前正在努力解决的问题......
Capybara.register_driver :selenium do |app|
profile = Selenium::WebDriver::Firefox::Profile.new
profile.assume_untrusted_certificate_issuer=false
Capybara::Selenium::Driver.new(app, browser: :firefox, profile: profile)
end
答案 0 :(得分:1)
if(!isset($_SESSION['counter'])) {
$_SESSION['counter'] = 1;
}
<?php echo '<a href = "#section'.($_SESSION['counter']++).'">'.'Next Section'.'</a>';?>