Introduction When writing automation tests there are several ways to locate the web elements using Selenium such as: id, linkText, name, partialLinkText, tagName and xpath. The following link describes the documentation of By class in selenium in case you are interested for more details.There is no silver bullet solution for…