本文介绍了如何使用Selenium绑定为IE11和边缘浏览器指定下载位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Selenium C#绑定能够指定chrome下载位置:

Selenium C# bindings have the ability to specify the chrome download location:

var options = new ChromeOptions().AddUserProfilePreference("download.default_directory", "D:\Downloads");

Edge&是否存在任何适当的实现? IE11?

Does any appropriate realization exist for Edge & IE11?

推荐答案

IE不使用profiles.As,因此,无法使用Internet自动将文件下载到指定位置资源管理器。

IE does not use profiles.As such, there is no way to automatically download files to a specified location with Internet Explorer.

这篇关于如何使用Selenium绑定为IE11和边缘浏览器指定下载位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 16:33