from selenium import webdriver import getpass
THEN, when you want to run a script, you type loginUser() and it does its thing
this works because getpass.getpass() works exactly like input() , except that it does not show any characters (it is for accepting passwords and not showing it to anyone who looks at the screen)
So what happens, the page loads. then everything stops, your user manually logs in, and then returns to the python CLI and ends up in enter.
source share