I am use python and selenium to go to a website that generates a random email. I am trying to store that email in a variable and return it.
def getemail(self):
driver = self.driver
driver.get("https://temp-mail.org/en/")
time.sleep(2)
ne = driver.find_element_by_xpath("//*[@id='mail']").text
return ne