• <tfoot id='WiDdc'></tfoot>

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

  • <legend id='WiDdc'><style id='WiDdc'><dir id='WiDdc'><q id='WiDdc'></q></dir></style></legend>

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

      • <bdo id='WiDdc'></bdo><ul id='WiDdc'></ul>

        使用 Selenium WebDriver 在自定义路径下载文件

        Download file at custom path using Selenium WebDriver(使用 Selenium WebDriver 在自定义路径下载文件)

          <legend id='ovaVC'><style id='ovaVC'><dir id='ovaVC'><q id='ovaVC'></q></dir></style></legend>

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

            <tbody id='ovaVC'></tbody>

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

                • <bdo id='ovaVC'></bdo><ul id='ovaVC'></ul>
                  本文介绍了使用 Selenium WebDriver 在自定义路径下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我是 selenium 新手,我想在特定的自定义文件夹中下载带有 selenium chrome web 驱动程序的文件.默认情况下,文件在浏览器指定的下载路径中下载.任何人都建议在 C# Selenium 中以自定义路径下载文件的最佳解决方案.

                  I am new to selenium and i would like to download file with selenium chrome web driver in specific custom folder. In default the file is downloading in browser specified download path. Any one suggest the best solution for downloading file in custom path in C# Selenium.

                  推荐答案

                  希望对你有帮助!!

                  var chromeOptions = new ChromeOptions();
                   chromeOptions.AddUserProfilePreference("download.default_directory", "Your_Path");
                   chromeOptions.AddUserProfilePreference("intl.accept_languages", "nl");
                   chromeOptions.AddUserProfilePreference("disable-popup-blocking", "true");
                  var driver = new ChromeDriver("Driver_Path", chromeOptions);
                  

                  这篇关于使用 Selenium WebDriver 在自定义路径下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
                  Parameter count mismatch with Invoke?(参数计数与调用不匹配?)
                  How to store delegates in a List(如何将代表存储在列表中)
                  How delegates work (in the background)?(代表如何工作(在后台)?)
                  C# Asynchronous call without EndInvoke?(没有 EndInvoke 的 C# 异步调用?)
                  Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)
                    • <small id='xyBWj'></small><noframes id='xyBWj'>

                      <legend id='xyBWj'><style id='xyBWj'><dir id='xyBWj'><q id='xyBWj'></q></dir></style></legend>
                        <bdo id='xyBWj'></bdo><ul id='xyBWj'></ul>
                          <tbody id='xyBWj'></tbody>

                          <tfoot id='xyBWj'></tfoot>

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