I am having an issue with the code, it returns
TypeError: 'str' object is not callable
email = driver.find_element(By.ID("email-input")).getAttribute("id")
I read through some other threads and tried
email = driver.find_element(By.ID("email-input")).text
But it's not working
ERROR
Traceback (most recent call last): File "C:\Users\user\Desktop\LAB AUTOMATION\LAB.py", line 42, in email = driver.find_element(By.ID, "email-input").getAttribute("id") File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 855, in find_element return self.execute(Command.FIND_ELEMENT, { File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 428, in execute self.error_handler.check_response(response)