0
你好,我使用水豚测试,测试应用程序。但是,iframe不显示自动测试。尝试测试存储在iframe中的条纹元素。我怀疑这与phanotmjs设置有关。尝试添加网络安全选项的confPhantomJs iframe not loading
Capybara.register_driver :poltergeist do |app|
options = {
:timeout => DEFAULT_WAIT_TIME,
:debug => false,
:phantomjs_options => ['--ignore-ssl-errors=yes', '--ssl-protocol=any', '--disk-cache=false', '--load-images=no', '--web-security=false' ],
:inspector => false,
:js_errors => false
}
Capybara::Poltergeist::Driver.new(app, options)
end
任何人只要有一些想法如何解决这个问题,也许有类似的问题
什么是iframe的实际内容? –
这条IFRAME版本3,我们在讨论https://stackoverflow.com/questions/45329095/cabybara-find-element-based-on-element-name那是问题 – vladimirProp
是的,你还没有发布框架的实际HTML内容,所以我们可以帮助您。在'within_frame'内添加'page.html'的结果。在运行它之前,您可能需要休息几秒钟以确保框架已完全装入 –