def create_behave_user(context): username = behave_testuser() password = behave_password() context.browser.get(signup_url()) signup_page = SignUpPage(context) signup_page.wait_until_element_is_visible_by_locator((By.CSS_SELECTOR, 'input#srp_username')) signup_page.enter_username(username) signup_page.enter_password(password) signup_page.enter_password_confirmation(password) signup_page.enter_invite_code(get_invite_code()) signup_page.click_signup_button()
def create_behave_user(context): username = behave_testuser() password = behave_password() context.browser.get('https://staging.pixelated-project.org/signup') signup_page = SignUpPage(context) signup_page.wait_until_element_is_visible_by_locator((By.CSS_SELECTOR, 'input#srp_username')) signup_page.enter_username(username) signup_page.enter_password(password) signup_page.enter_password_confirmation(password) signup_page.click_signup_button()
def create_behave_user(context): username = behave_testuser() password = behave_password() context.browser.get('https://staging.pixelated-project.org/signup') signup_page = SignUpPage(context) signup_page.wait_until_element_is_visible_by_locator( (By.CSS_SELECTOR, 'input#srp_username')) signup_page.enter_username(username) signup_page.enter_password(password) signup_page.enter_password_confirmation(password) signup_page.click_signup_button()
def after_all(context): _delete_user(context, behave_testuser(), behave_password()) if hasattr(context, 'browser'): context.browser.quit()
def step_impl(context): subject = 'unencrypted email %s' % random_subject() behave_user = behave_testuser() maillist = MailList(context) maillist.select_mail(behave_user, subject)
def step_impl(context): subject = 'email to myself %s' % random_subject() behave_user = behave_testuser() maillist = MailList(context) maillist.select_mail(behave_user, subject)
def step_impl(context): context.browser.get(login_url()) login_page = LoginPage(context) login_page.enter_username(behave_testuser()).enter_password(behave_password()).login() login_page.wait_interstitial_page()
def step_impl(context): context.browser.get(login_url()) login_page = LoginPage(context) login_page.enter_username(behave_testuser()).enter_password( behave_password()).login() login_page.wait_interstitial_page()