text = "hogehoge" find_text = '//*[translate(@aria-label, "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "abcdefghijklmnopqrstuvwxyz")="' + text + '"]' driver.find_element_by_xpath(find_text)
text = "hogehoge" find_text = '//*[translate(@aria-label, " ", "")="' + text + '"]' driver.find_element_by_xpath(find_text)