Running IE as a different user with Selenium Webdriver in Java

前端 未结 6 780
灰色年华
灰色年华 2021-01-19 02:55

Does anyone know how I could get selenium to run an IE session utilising the \"Run as different user\" function using JAVA? I have no idea how I\'d even go about setting th

6条回答
  •  耶瑟儿~
    2021-01-19 03:32

    Looks like it's possible to do this using Windows Credential Manager. I was able to manually set the username & password for the site, then drive there with Selenium and the alternate credential I specified was used to authenticate.

    The next step is to set the credential at runtime, which should be possible with powershell.

提交回复
热议问题