Posted on: 10/9/2013 9:42:44 AM | Views : 747

Hello everyone, I'm creating some BDD Tests via Specflow (VS2012, framework 4.5). One of the requirements is security, certain users should only see certain things. So I need to run my browser impersonating certain users. I've followed the proper way of doing this (best practices, suggestions on other forums). I've instanciated a System.Diagnostics.ProcessStartInfo (with the correct properties) - called psi. Then I System.Diagnostics.Process (passing in psi) called p and invoke p.Start() - this fires up IE as the given user; After that, I try impersonating the user (which does work - I've checked in debug mode if the correct username for WindowsIdentity.GetCurrent().Name), but still, IE can't open the correct site. ...

Go to the complete details ...