4
A
回答
1
我认为你应该定制Chrome's profile:
尝试设置extensions.password_manager_enabled
为false:
Capybara.register_driver :chrome do |app|
profile = Selenium::WebDriver::Chrome::Profile.new
profile['extensions.password_manager_enabled'] = false
Capybara::Selenium::Driver.new(app, :browser => :chrome, profile: profile)
end
如果它不工作,看其他Chrome的喜好和开关。
相关问题
- 1. 在水豚/ Selenium测试触发hoverIntent
- 2. 水豚:不能利用Mac
- 3. Firefox和Chrome Selenium webdrivers与水豚和SitePrism的行为不同
- 4. 每页加载后的水豚配置
- 5. 如何更新水豚配置文件?
- 6. 在水豚上使用自定义Selenium服务器
- 7. 并行运行Selenium测试与水豚
- 8. 水豚-webkit vs selenium-webdriver的比较
- 9. 水豚+硒
- 10. 水豚click_link用:HREF匹配
- 11. 水豚field.has_css?匹配器
- 12. 水豚黄瓜匹配器
- 13. 水豚检查匹配
- 14. 如何使用水豚/硒在Chrome上下载多个文件?
- 15. 火狐与水豚和硒-Webdriver
- 16. 在水豚
- 17. 如何在水豚
- 18. 超时::对水豚
- 19. 配置Jenkins使用Chrome - Selenium 3.0.1 Maven TestNG
- 20. 水豚-1.1.1冲突与水豚(〜> 0.4.0)
- 21. 水豚/骚灵HTTP认证
- 22. 元素在水豚
- 23. 水豚看整个页面
- 24. 点击img水豚
- 25. 水豚和page.body
- 26. 如何在水豚中使用ruby-debug w/selenium
- 27. rails,rspec,水豚,webkit/selenium,devise,在每次请求后注销
- 28. 水豚+ Rspec + Selenium:页面总是在浏览器中空白
- 29. 水豚:: InfiniteRedirectError
- 30. 在Linux上的水豚 - Poltergeist角模块
我得到这个错误“NameError:未初始化的常量Selenium”我必须包含任何特定的文件吗? – 2013-03-04 07:09:26
@AlperMermer你应该'需要'selenium-webdriver'' – 2013-03-04 07:32:33
profile ['extensions.password_manager_enabled'] = false不起作用。找到这个代码,但它没有工作 profile ['autologin.enabled'] = false – 2013-03-04 12:27:57