久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <legend id='NPIzA'><style id='NPIzA'><dir id='NPIzA'><q id='NPIzA'></q></dir></style></legend>
      1. <tfoot id='NPIzA'></tfoot>

          <bdo id='NPIzA'></bdo><ul id='NPIzA'></ul>
        <i id='NPIzA'><tr id='NPIzA'><dt id='NPIzA'><q id='NPIzA'><span id='NPIzA'><b id='NPIzA'><form id='NPIzA'><ins id='NPIzA'></ins><ul id='NPIzA'></ul><sub id='NPIzA'></sub></form><legend id='NPIzA'></legend><bdo id='NPIzA'><pre id='NPIzA'><center id='NPIzA'></center></pre></bdo></b><th id='NPIzA'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='NPIzA'><tfoot id='NPIzA'></tfoot><dl id='NPIzA'><fieldset id='NPIzA'></fieldset></dl></div>

        <small id='NPIzA'></small><noframes id='NPIzA'>

      2. 使用量角器在 Firefox 上下載文件

        Download file on Firefox with protractor(使用量角器在 Firefox 上下載文件)
        <tfoot id='tlz33'></tfoot>

          <small id='tlz33'></small><noframes id='tlz33'>

          1. <i id='tlz33'><tr id='tlz33'><dt id='tlz33'><q id='tlz33'><span id='tlz33'><b id='tlz33'><form id='tlz33'><ins id='tlz33'></ins><ul id='tlz33'></ul><sub id='tlz33'></sub></form><legend id='tlz33'></legend><bdo id='tlz33'><pre id='tlz33'><center id='tlz33'></center></pre></bdo></b><th id='tlz33'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='tlz33'><tfoot id='tlz33'></tfoot><dl id='tlz33'><fieldset id='tlz33'></fieldset></dl></div>

                <tbody id='tlz33'></tbody>

            1. <legend id='tlz33'><style id='tlz33'><dir id='tlz33'><q id='tlz33'></q></dir></style></legend>
                <bdo id='tlz33'></bdo><ul id='tlz33'></ul>
                  本文介紹了使用量角器在 Firefox 上下載文件的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我需要使用量角器在 Firefox 上下載一個 zip 文件.單擊下載鏈接時,會彈出要求打開/保存文件的 Windows 對話框.那么我該如何處理.我需要將哪些參數傳遞給驅動程序?使用 chrome 我可以做到這一點下載: {'prompt_for_download':假},

                  I need to download a zip file on Firefox with protractor. On clicking on download link, Windows dialog asking to Open/Save the file pops up. So How can I handle that. What args do I need to pass to driver? With chrome I can do that with download: { 'prompt_for_download': false },

                  但是我應該用 Firefox 做什么.

                  but what should i do with firefox.

                  推薦答案

                  問題是 - 您無法通過量角器/硒操作另存為..."對話框.您應該首先避免打開它,讓 firefox 自動下載指定 mime 類型的文件 - 在您的情況下為 application/zip.

                  The problem is - you cannot manipulate that "Save As..." dialog via protractor/selenium. You should avoid it being opened in the first place and let firefox automatically download the files of a specified mime-type(s) - in your case application/zip.

                  換句話說,您需要使用自定義 Firefox 來啟動 Firefox配置文件設置適當的偏好:

                  In other words, you need to fire up Firefox with a custom Firefox Profile setting the appropriate preferences:

                  var q = require("q");
                  var FirefoxProfile = require("firefox-profile");
                  
                  var makeFirefoxProfile = function(preferenceMap, specs) {
                      var deferred = q.defer();
                      var firefoxProfile = new FirefoxProfile();
                  
                      for (var key in preferenceMap) {
                          firefoxProfile.setPreference(key, preferenceMap[key]);
                      }
                  
                      firefoxProfile.encoded(function (encodedProfile) {
                          var capabilities = {
                              browserName: "firefox",
                              firefox_profile: encodedProfile,
                              specs: specs
                          };
                  
                          deferred.resolve(capabilities);
                      });
                      return deferred.promise;
                  };
                  
                  exports.config = {
                      getMultiCapabilities: function() {
                          return q.all([
                              makeFirefoxProfile(
                                  {
                                      "browser.download.folderList": 2,
                                      "browser.download.dir": "/path/to/save/downloads",
                                      "browser.helperApps.neverAsk.saveToDisk": "application/zip"
                                  },
                                  ["specs/*.spec.js"]
                              )
                          ]);
                      },
                  
                      // ...
                  }
                  

                  這里我們基本上是在說:Firefox,請自動下載 zip 文件,而不是詢問 /path/to/save/downloads 目錄.

                  Here we are basically saying: Firefox, please download zip files automatically, without asking into the /path/to/save/downloads directory.

                  這篇關于使用量角器在 Firefox 上下載文件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)
                  <legend id='xnGU1'><style id='xnGU1'><dir id='xnGU1'><q id='xnGU1'></q></dir></style></legend>
                      <tfoot id='xnGU1'></tfoot>
                      <i id='xnGU1'><tr id='xnGU1'><dt id='xnGU1'><q id='xnGU1'><span id='xnGU1'><b id='xnGU1'><form id='xnGU1'><ins id='xnGU1'></ins><ul id='xnGU1'></ul><sub id='xnGU1'></sub></form><legend id='xnGU1'></legend><bdo id='xnGU1'><pre id='xnGU1'><center id='xnGU1'></center></pre></bdo></b><th id='xnGU1'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='xnGU1'><tfoot id='xnGU1'></tfoot><dl id='xnGU1'><fieldset id='xnGU1'></fieldset></dl></div>

                        <tbody id='xnGU1'></tbody>
                      • <bdo id='xnGU1'></bdo><ul id='xnGU1'></ul>

                        <small id='xnGU1'></small><noframes id='xnGU1'>

                          1. 主站蜘蛛池模板: 天天操 夜夜操 | 欧美理论片在线 | 一级做a爰片性色毛片 | 国产一区二区中文字幕 | 国产高清在线观看 | 久久精品99国产精品日本 | 欧美一级黄 | 99re国产精品 | 国产999精品久久久久久 | 国产成人免费 | 欧美激情精品久久久久久变态 | 天堂一区二区三区四区 | 久久久91 | 国产精品一区二区视频 | 欧美亚州综合 | 极情综合网 | 国产乱码一二三区精品 | 一级黄a视频 | 欧美一级欧美三级在线观看 | 成人特级毛片 | 久热国产精品 | 日韩在线免费视频 | 久久99视频这里只有精品 | www.色五月.com| 天天干夜夜操 | 毛片入口 | 亚州综合一区 | 国产精品久久久久久婷婷天堂 | 成人欧美一区二区三区在线播放 | 在线中文字幕日韩 | 国产午夜精品一区二区三区四区 | 久久69精品久久久久久国产越南 | 成人国产免费视频 | 色婷婷亚洲一区二区三区 | 亚洲综合色自拍一区 | 超碰在线免费av | 黄色在线免费观看 | 精品欧美色视频网站在线观看 | 亚洲人成人一区二区在线观看 | 亚洲国产精品久久久 | 激情欧美日韩一区二区 |