Running IE as a different user with Selenium Webdriver in Java

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

    If worse comes to worst, you could just setup a file with your different usernames and passwords, read them in, determine the user you need through a factory class, and then select the user per test based on the parameters you need to look at. If you do it this way, when you are running on multi-threads, it will still pull in the correct user to login with.

    I don't think this is your primary goal, but a secondary solution at minimum.

提交回复
热议问题