Python-Selenium Targeting a user within a list of other users
It looks like you can rely on the tester's name being a part of data-reactid
attribute:
tester = "tester1"delete_button = driver.find_element_by_xpath("//span[@class = 'delete' and contains(@data-reactid, '$%s.')]" % tester)delete_button.click()