Aug-13-2019, 05:07 PM
Hi Guys,
I have a string of text seperated by a pipe symbol like:
Once one of those TEXT strings is found in the html we mark it as a success.
What i'm having trouble with is, how can i find out which of the "submit_success" flags was found?
Any help would be appreciated.
cheers
I have a string of text seperated by a pipe symbol like:
1 2 3 4 5 6 |
# a list of flags to look for on success ... submit_success = "TEXT_1|TEXT_2|TEXT_3|etc" # if a flag is found do our routines ... if any (s in self .driver.page_source for s in submit_success.split( '|' )): # run this code once a submit_success flag is found |
What i'm having trouble with is, how can i find out which of the "submit_success" flags was found?
Any help would be appreciated.
cheers