Sep-28-2016, 01:05 PM
I always find it helpful to include 'print' commands at various points in the script in order to see if things are actually what they are meant to be.
Quote:What would I need to add in order for this to show me each login attempt and allow me to also see the "Wrong Answer" output from the application when I enter a wrong PIN?You might use a 'try/except' statement.
Quote:Also, if there is something better than pexpect that I should consider in this case please let me know.The only thing that comes to mind at the moment is Pythons built-in 'subprocess'
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition