I am trying to use a list or a .txt file to search for text/string in a span. So far I am able to find one string but not incorporate any others without messy code. I want to look for Hi, Hey, Hello, etc
browser.find_element_by_xpath('//span[text()= "Hey"]')
The text file will be:
Hi
Hey
Hello
Edit: Would a contain be easier to use in this case?