I am rewriting python code into java and getting confused to get translate following line:
element = driver.find_element(By.XPATH,"//*[contains(text(),'Hello')]")
id = element.get_property('attributes')[1]['textContent']
How should I convert it to Java?