conditions = ' or '.join([("contains(., '%s')" % keyword) for keyword in
    keywords])
expression = '//*[%s]' % conditions
elm = driver.find_element_by_xpath(expression)
How to find element by multiple text strings?