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')
def setUp(self): Driver.Initialize()
def setUp(self): print('setUp') # execute before every test-case Driver.Initialize(name)