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
The text file will be:
Hi Hey Hello
Edit: Would a contain be easier to use in this case?
If we have a list like this
text_list = ['Hi', 'Hey', 'Hello']
You can parse in the Selenium
driver.find_elememt like below
Here I am parsing
 which will be the
first element, you can change the
index as you wish to.