|  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 :  15 Mar, 2023

Like Article  __

Save Article  __

[ Previous  ](https://www.geeksforgeeks.org/find_element_by_id-driver-method-
selenium-python/?ref=previous_article)

[ find_element() driver method - Selenium Python
](https://www.geeksforgeeks.org/find_element_by_id-driver-method-selenium-
python/?ref=previous_article)

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

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

Share your thoughts in the comments

Add Your Comment

__

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

Similar Reads

[ find_element() driver method - Selenium Python
](https://www.geeksforgeeks.org/find_element_by_id-driver-method-selenium-
python/) [ find_element(By.XPATH) driver method - Selenium Python
](https://www.geeksforgeeks.org/find_element_by_xpath-driver-method-selenium-
python/) [ 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/) [ find_elements_by_css_selector() driver method - Selenium
Python  ](https://www.geeksforgeeks.org/find_elements_by_css_selector-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/)

Practice Tags :

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

Trending in News

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

* * *

  * [ 10 Best Free Code Learning Apps for Android in 2024 ](https://www.geeksforgeeks.org/10-best-free-code-learning-apps-for-android-in-2024/?ref=article_trending)
  * [ 5 Best AI Tools for Plagiarism Detection 2024 ](https://www.geeksforgeeks.org/best-ai-tools-for-plagiarism-detection-2024/?ref=article_trending)
  * [ 10 Best iMovie Alternatives in 2024 ](https://www.geeksforgeeks.org/10-best-imovie-alternatives-in-2024/?ref=article_trending)
  * [ 10 Best AI Tools for Sentiment Analysis ](https://www.geeksforgeeks.org/10-best-ai-tools-for-sentiment-analysis/?ref=article_trending)
  * [ 30 OOPs Interview Questions and Answers (2024) ](https://www.geeksforgeeks.org/oops-interview-questions/?ref=article_trending)

Explore More

[