草庐IT

driverServiceProcess

全部标签

c# - 以不同用户身份运行的 selenium web 驱动程序未获取用户的配置文件/ session

我有一个奇怪的情况,我稍微修改了seleniumweb驱动程序代码以允许驱动程序服务在不同的用户下启动,对github中的代码的更改是:publicvoidStart(){this.driverServiceProcess=newProcess();if(this.user!=null){this.driverServiceProcess.StartInfo.UserName=user.Name;this.driverServiceProcess.StartInfo.Password=user.Password;this.driverServiceProcess.StartInfo.D