← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #689265]: input text field into pop-up box

 

Question #689265 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/689265

    Status: Open => Answered

Manfred Hampl proposed the following answer:
If you are talking about a password, then I would never store it in the
script or in a config file, but I suggest request it from the user at
run time.

Something like

click( screenshot )
click (Screenshot)
myPassword = input("please enter your password", hidden = True)
paste(myPassword)
click (screenshot)
wait(2)
click(Screenshot)

In your approach with a config file, your error probably is that the config key "user1" has to be in brackets.
config.ini file:
[user1]
password = xxxxxx

(and you probably missed the paste() in your snippet)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.