Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
181 views
by
I am using selenium python for my selenium scripting. Can you help me with ways to find an element using selenium python?

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)

Here is the list of methods you can use to find webelement.

  • find_element_by_id
  • find_element_by_name
  • find_element_by_xpath
  • find_element_by_link_text
  • find_element_by_partial_link_text
  • find_element_by_tag_name
  • find_element_by_class_name
  • find_element_by_css_selector
To find multiple elements (these methods will return a list):
  • find_elements_by_name
  • find_elements_by_xpath
  • find_elements_by_link_text
  • find_elements_by_partial_link_text
  • find_elements_by_tag_name
  • find_elements_by_class_name
  • find_elements_by_css_selector
Hope that helps.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...