getpass echos password
I have a little snippet of code shown below, which logs me into a web page. However, the password is retrieved "in the clear".
vvvvvvvvvvvvvvv
import getpass
def waitText(text, time):
while time > 0:
match = findText(text)
if match: return match
time -= 1
return null
myApp = App("chrome")
myApp.open()
type("l", Key.CTRL)
type("https:/
type(Key.SPACE, Key.ALT)
type("x")
u = input('Userid: ')
p = getpass.getpass()
^^^^^^^
When this runs, the console shows:
rfb@rfb:
[error] Hot key conflicts
[error] HotkeyManager: addHotkey: failed
[log] ( Ctrl ) TYPE "l"
[log] TYPE "https:/
[log] ( Alt ) TYPE " "
[log] TYPE "x"
Password: password <--- This is not good
I'm trying to get that password from the user without echoing it.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: