I am starting with Python - Selenium and I cannot interact with the password section and insert the password from the text file. The problem is not with inserting or locating the element I think because the username locating and insert works correct. The problem is probably in waits, but I cannot formulate this command in code correctly. After the username is inserted and the page is swiped to next page and there should be some dalay. So I tried function "time.sleep(4)" and it does not work but even the function "driver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS)" not works too. I try many options of formulate this command but the code ends always by Message: element not interactable. Please could you help me with this problem? Here is problematic part of code:
driver.find_element_by_id("userName").send_keys(username2)
driver.find_element_by_id("verify_user_btn").click()
time.sleep(4)
driver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS)
driver.find_element_by_id("password").send_keys(password2)
driver.find_element_by_id("btnSubmit").click()
Many thanks.