ent_by_class_name  ](https://www.geeksforgeeks.org/find_element_by_class_name-driver-method-selenium-python/?ref=rp) |  the first element with the matching class attribute name will be returned.   
[ find_element_by_css_selector  ](https://www.geeksforgeeks.org/find_element_by_css_selector-driver-method-selenium-python/?ref=rp) |  The first element with the matching CSS selector will be returned.   
  

  

Last Updated :  23 Feb, 2024

Like Article  __

Save Article  __

[ Previous  ](https://www.geeksforgeeks.org/writing-tests-using-selenium-
python/?ref=previous_article)

[ Writing Tests using Selenium Python ](https://www.geeksforgeeks.org/writing-
tests-using-selenium-python/?ref=previous_article)

[ Next  ](https://www.geeksforgeeks.org/find_element_by_name-driver-method-
selenium-python/?ref=next_article)

[ find_element(By.Name) driver method - Selenium Python
](https://www.geeksforgeeks.org/find_element_by_name-driver-method-selenium-
python/?ref=next_article)

Share your thoughts in the comments

Add Your Comment

__

###  Please _ Login  _ to comment...

Similar Reads

[ find_element(By.Name) driver method - Selenium Python
](https://www.geeksforgeeks.org/find_element_by_name-driver-method-selenium-
python/) [ find_element(By.XPATH) driver method - Selenium Python
](https://www.geeksforgeeks.org/find_element_by_xpath-driver-method-selenium-
python/) [ Difference between driver.dispose(), driver.close() and
driver.quit()  ](https://www.geeksforgeeks.org/difference-between-driver-
dispose-driver-close-and-driver-quit/) [ Python - find_element() method in
Selenium  ](https://www.geeksforgeeks.org/python-find_element_by_id-method-in-
selenium/) [ find_elements_by_name() driver method - Selenium Python
](https://www.geeksforgeeks.org/find_elements_by_name-driver-method-selenium-
python/) [ find_elements_by_xpath() driver method - Selenium Python
](https://www.geeksforgeeks.org/find_elements_by_xpath-driver-method-selenium-
python/) [ find_elements_by_link_text() driver method - Selenium Python
](https://www.geeksforgeeks.org/find_elements_by_link_text-driver-method-
selenium-python/) [ find_elements_by_partial_link_text() driver method -
Selenium Python
](https://www.geeksforgeeks.org/find_elements_by_partial_link_text-driver-
method-selenium-python/) [ find_elements_by_tag_name() driver method -
Selenium Python  ](https://www.geeksforgeeks.org/find_elements_by_tag_name-
driver-method-selenium-python/) [ find_elements_by_class_name() driver method
- Selenium Python
](https://www.geeksforgeeks.org/find_elements_by_class_name-driver-method-
selenium-python/)

__ Like

[ N  __
](https://auth.geeksforgeeks.org/user/NaveenArora/articles?utm_source=geeksforgeeks&utm_medium=article_author&utm_campaign=auth_user)

[ NaveenArora
](https://auth.geeksforgeeks.org/user/NaveenArora/articles?utm_source=geeksforgeeks&utm_medium=article_author&utm_campaign=auth_user)

Follow

Article Tags :

  * [ Python-selenium ](https://www.geeksforgeeks.org/tag/python-selenium/)
  * [ selenium ](https://www.geeksforgeeks.org/tag/selenium/)
  * [ Python ](https://www.geeksforgeeks.org/category/programming-language/python/)
  * [ Selenium ](https://www.geeksforgeeks.org/category/software-testing/selenium/)
  * [ Software Testing ](https://www.geeksforgeeks.org/category/software-testing/)

Practice Tags :

  * [ python ](https://practice.geeksforgeeks.org/explore?category=python)

Trending in News

[ View More  ](https://www.geeksforgeeks.org/trending/?ref=viewmore_trending)

* * *

  * [ How to Delete Whatsapp Business Account? ](https://www.geeksforgeeks.org/how-to-delete-whatsapp-business-account/?ref=article_trending)
  * [ Discord vs Zoom: Select The Efficienct One for Virtual Meetings? ](https://www.geeksforgeeks.org/discord-vs-zoom-select-the-efficienct-one-for-virtual-meetings/?ref=article_trending)
  * [ Otter AI vs Dragon Speech Recognition: Which is the best AI Transcription Tool? ](https://www.geeksforgeeks.org/otter-ai-vs-dragon-speech-bes