Tag: microsoft edge

Microsoft Edge PDF内联问题

我们的Rails Web应用程序使用wkhtmltopdf生成PDF并将它们发送到客户端。 这适用于除Edge之外我们测试过的每个Web浏览器。 我们尝试过以几种不同的方式呈现响应,这就是它最初的原因: kit = PDFKit.new(@html_content) render text: kit.to_pdf, content_type: ‘application/pdf’ 这将打开PDF查看器,并在我们测试过的每个浏览器中正确显示PDF,除了浏览器显示的Edge之外: 有些东西会打开此PDF。 在我们的应用程序日志中,有POST请求,即表单提交,我可以看到我们的应用程序发送pdf文件响应,然后有对表单提交URL的后续GET请求哪个错误,因为它不期望对该URL的任何GET请求。 我不知道这里发生了什么。 请求的响应标头是: Cache-Control: max-age=0, private, must-revalidate Connection: Keep-Alive Content-Length: 34865 Content-Type: application/pdf; charset=utf-8 Date: Thu, 18 Jun 2015 14:35:30 GMT Etag: “4baf297d1866339e60e8e893300909a0” Server: WEBrick/1.3.1 (Ruby/2.0.0/2013-06-27) Set-Cookie: _APP_session=; path=/; HttpOnly X-Request-Id: 617580a8-4d7d-43c4-8e49-aeaeafba7b79 X-Runtime: 21.868098 X-XSS-Protection: 1; mode=block x-content-type-options: nosniff x-frame-options: SAMEORIGIN […]

初始watir-webdriver启动后边缘浏览器崩溃

我正在使用最新的selenium-webdriver(2.47.1)和watir-webdriver(0.8.0),并将Edge WebDriver安装在Ruby / bin文件夹中,就像其他webdriver.exe文件一样; 像chromedriver或iedriver。 它似乎启动了Edge浏览器,但在关闭浏览器并且未通过所有测试之前不会尝试转到URL。 我在Windows中的防火墙允许它,当我运行我的rspec测试时它指出: Selenium::WebDriver::Error::NoSuchWindowError: no such window 有没有人让MSWebdriver与watir-webdriver一起工作? 错误: c:/Ruby-222-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.47.1/lib/selenium/webdriver/remote/response.rb:71:in `assert_ok’: not implemented (Selenium::WebDriver::Error::WebDriverError) from c:/Ruby-222-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.47.1/lib/selenium/webdriver/remote/response.rb:34:in `initialize’ from c:/Ruby-222-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.47.1/lib/selenium/webdriver/remote/http/common.rb:78:in `new’ from c:/Ruby-222-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.47.1/lib/selenium/webdriver/remote/http/common.rb:78:in `create_response’ from c:/Ruby-222-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.47.1/lib/selenium/webdriver/remote/http/default.rb:90:in `request’ from c:/Ruby-222-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.47.1/lib/selenium/webdriver/remote/http/common.rb:59:in `call’ from c:/Ruby-222-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.47.1/lib/selenium/webdriver/remote/bridge.rb:657:in `raw_execute’ from c:/Ruby-222-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.47.1/lib/selenium/webdriver/remote/bridge.rb:635:in `execute’ from c:/Ruby-222-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.47.1/lib/selenium/webdriver/remote/bridge.rb:221:in `switchToDefaultContent’ from c:/Ruby-222-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.47.1/lib/selenium/webdriver/common/target_locator.rb:96:in `default_content’ from c:/Ruby-222-x64/lib/ruby/gems/2.2.0/gems/watir-webdriver-0.8.0/lib/watir-webdriver/browser.rb:385:in `assert_exists’ from c:/Ruby-222-x64/lib/ruby/gems/2.2.0/gems/watir-webdriver-0.8.0/lib/watir-webdriver/browser.rb:110:in `url’ from c:/Ruby-222-x64/lib/ruby/gems/2.2.0/gems/watir-webdriver-0.8.0/lib/watir-webdriver/browser.rb:79:in `goto’ from […]