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
Its quite possible i have done it may time. Easy way If you run selenium through eclipse. Just open eclipse IDE by right click open as different user.
The harder way create a Java>Runnable JAR file as mentioned in the article below.
https://www.joecolantonio.com/selenium-executable-java-test/
you should be admin on local machine to do it and should have windows account iusername and password for user:userA user:userA1 and so on. open multiple command prompt
C:\>runas /user:domainname\userA cmd
C:\>runas /user:domainname\userA1 cmd
C:\>runas /user:domainname\userA2 cmd
or
C:\>runas /user:domainname\username cmd
Enter the password for administrator: Attempting to start cmd as user "techblogger-pc\administrator" ... then type same jar file in command window Like c:\runnableselenium.jar and bomb you have all jar running with different credential Find a way to see the logged in user name on test page somehow.