Selenium with xUnit Part 2: Locating Elements

After writing my very first Selenium test with xUnit, now I can dive into different methods of finding elements on the page. You can locate an element/elements with FindElement/FindElements methods by different properties of an element such as ID, Name, Class, XPath, CSS Selectors, link Text, etc. FindElement method returns the first matching element on…

First Selenium Test with xUnit

Selenium with xUnit Part 1 I've been using Selenium WebDriver with MSTest for a while but I wanted to try it with xUnit.net too. So here is the very basic first Selenium test with xUnit. Prerequisites: Visual Studio (I used Visual Studio 2019 in the examples) Let's Get Started Create a new xUnit Test Project…