from selenium import webdriver # initialize the browser driver driver = webdriver.Chrome() # visit a website driver.get('https://www.example.com') # find an element with class "header" header_element = driver.find_element_by_class_name('header') # print the element's text print(header_element.text) # find all elements with class "article" article_elements = driver.find_elements_by_class_name('article') # loop through each article and print its text for article in article_elements: print(article.text)In the example code above, we first initialize a `WebDriver` object and navigate to a website. We then use `find_element_by_class_name` to locate an HTML element with class `header`, and print its text. We also use `find_elements_by_class_name` to locate all HTML elements with class `article`, and loop through each one to print their text. Overall, `find_element_by_class_name` is a useful method provided by Python's `selenium.webdriver.remote.webdriver` package for locating HTML elements by their class name.