예제 #1
0
def trying():
    if 'username' in session and 'email' in session and 'phoneNum' in session:
        username = escape(
            session['username'])  # getting username&email from the session
        email = escape(session['email'])
        phoneNum = escape(session['phoneNum'])
        # Here comes the code of reseting his password without he knows etc (Selenium)
        Driver.Initialize()
        PasswordReset.connect_to_site(phoneNum)
        return redirect(url_for('code'))
    return render_template('error.html')
예제 #2
0
 def setUp(self):
     Driver.Initialize()
예제 #3
0
 def setUp(self):
     print('setUp')  # execute before every test-case
     Driver.Initialize(name)