0

How to locate icons in a table which has as id in html code are based on "delete_number" , "edit_number" and the number is the serial number in selenium using python and without using xpath.

sat_yug
  • 187
  • 3
  • 17

1 Answers1

1

You can try using find_elements_by_css_selector with partial attribute selector.

Something like:

driver.find_elements_by_css_selector('div[id^="delete_"]')
Community
  • 1
  • 1
Tzach
  • 12,889
  • 11
  • 68
  • 115