For my UI testing using Selenium in C#, I need to figure out the best way to "mark" my web elements for future ease of testing and maintenance. Whether it's an <input>
, <div>
, or any other element, what should I use? Is it better to use id="element_id"
, name="element_name"
, class="class_name"
, or stick with Xpath?
Or is there another recommended approach?