findElement(By.locator): This method is used to find a single web element on a page that matches the specified locator. If it finds more than one element, it returns the first one. If no matching element is found, it throws a NoSuchElementException.
findElements(By.locator): This method is used to find all the web elements that match the specified locator. It returns a List (in Java) or a list of elements. If no elements are found, it returns an empty list, and it does not throw an exception.