Aug-13-2019, 05:07 PM
Hi Guys,
I have a string of text seperated by a pipe symbol like:
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:
# 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 foundOnce 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
