Running IE as a different user with Selenium Webdriver in Java

前端 未结 6 776
灰色年华
灰色年华 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:28

    I don't know why you would want to do this, and I don't believe it is possible. However, I've made a few guesses at your end goal, with solutions for each.

    If you want to start fresh (with no cache or anything), then simply start up a new IEDriver instance.

    If you want to start it with different settings, you can pass in your desired capabilities.

    If there is something else entirely you are trying to do, feel free to reply, and explain your situation.

提交回复
热议问题