In Selenium automation, XPath is a powerful method for locating web elements. Sometimes, you may not have the exact value of an element’s attribute, but you may know part of the value. This is where the contains() function in XPath