totp login with Google chrome

Srinivasa9999
Traceback (most recent call last):
File "genAccessKey.py", line 67, in
autologin()
File "genAccessKey.py", line 54, in autologin
totp_text_field = driver.find_element("xpath",'/html/body/div[1]/div/div[2]/div[1]/div/div/div[2]/form/div[2]/input')
File "/home/srinivas/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 830, in find_element
return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
File "/home/srinivas/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
self.error_handler.check_response(response)
File "/home/srinivas/.local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[1]/div/div[2]/div[1]/div/div/div[2]/form/div[2]/input"}
(Session info: headless chrome=111.0.5563.64)
  • Srinivasa9999
    Srinivasa9999 edited March 2023
    working with below xpath
    /html/body/div[1]/div/div/div[1]/div[2]/div/div/form/div[1]/input
  • sujith
    It is mandatory by the exchange that a user has to manually login at least once a day. We don't recommend automating login.
This discussion has been closed.