如何在黄瓜测试用例中使用selenium web驱动程序安装firefox

如何在黄瓜测试用例中使用selenium web驱动程序安装firefox,第1张

概述我必须编写脚本,我需要安装名为“aqqin”的firefox-add-on.我该怎么做 硒与ruby代码: RSpec.configure do |config| profile = Selenium::WebDriver::Firefox::Profile.new profile.assume_untrusted_certificate_issuer = true #pr 我必须编写脚本,我需要安装名为“aqqin”的firefox-add-on.我该怎么做解决方法 硒与ruby代码:

RSpec.configure do |config|    profile = Selenium::WebDriver::firefox::Profile.new    profile.assume_untrusted_certificate_issuer = true    #profile.add_extension "/usr/lib/firefox-addons/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}"    Capybara.register_driver :selenium do |app|        Capybara::Selenium::Driver.new(app,{:browser => :firefox,:profile => "default"} )        #Capybara::Selenium::Driver.new(app,:profile => profile} )    end end
总结

以上是内存溢出为你收集整理的如何在黄瓜测试用例中使用selenium web驱动程序安装firefox全部内容,希望文章能够帮你解决如何在黄瓜测试用例中使用selenium web驱动程序安装firefox所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1064553.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存