I am using Microsoft Visual Studio and Selenium to test a webpage. This particular website requires a user to login to the web page and based on some settings, some elements will be displayed and some won't. There are only two types of users. What is the best design to implement tests like these? I am only validating the existence of elements or the lack of.
But for both users I would sometimes run the same test. I considered using Visual Studio's TestCategories, but it can't figure out how to switch a variable per test category.