You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When run it I will get the following output. It feels natural because that is how I run those commands
spawn npm login
Username: qiulang2000
Password:
Email: (this IS public) qiulang@gmail.com
Logged in as qiulang2000 on https://registry.npmjs.com/.
But when I use pexpect, no matter how I add print(child.after)or print(child.before) I just can't get output like expect, e.g. when I run following command
I am familiar with expect script so I feel a bit odd when I first use pexpect. Take this simple script as an example,
When run it I will get the following output. It feels natural because that is how I run those commands
But when I use pexpect, no matter how I add
print(child.after)
orprint(child.before)
I just can't get output like expect, e.g. when I run following commandI got these output, it feels unnatural because that is not what I see when I run those commands.
So is it it possbile to achieve the expect script output?
The text was updated successfully, but these errors were encountered: