I use find_elements_by_xpath to know if keywords exists
driver.find_elements_by_xpath('//*[contains(text(), "' + str(key) + '")]')
when keyword = 0.5 HR which returns 0.5 HR (correctly)
when keyword = 5 HR which still returns both 5 HR and 0.5 HR (wrong, 0.5 HR is not 5 HR)
Is it possible to avoid?