def _test_fxa_signup(self): '''FullFlow1:create, signout - %s %s %s''' % \ (self.os, self.br, self.version) self.driver.get(FXA_SIGNUP) time.sleep(2) assert 'Create' in self.driver.title username = self.driver.find_element_by_css_selector(input_email) username.send_keys(self.fxa_new_user) time.sleep(2) pw = self.driver.find_element_by_css_selector(input_password) pw.send_keys(fxa_password) selectBox = Select(self.driver.find_element_by_id(coppa_locator)) time.sleep(2) selectBox.select_by_visible_text("1991") self.driver.find_element_by_id(btn_submit).click() self.wait_page_load(FXA_SIGNUP) assert 'Confirm your account' in self.driver.title # verify restmail user time.sleep(4) restmail_link = getRestmailLink(self.fxa_new_user) self.driver.get(restmail_link) time.sleep(2) assert 'verified' in self.driver.title
def _test_123done_signup(self): '''123done1:create, signout - %s %s %s''' % \ (self.os, self.br, self.version) here = self.driver.current_url self.driver.get(FXA_123DONE) self.wait_page_load(here) assert 'Do Stuff' in self.driver.title here = self.driver.current_url self.driver.find_element_by_css_selector(btn_signup_locator).click() self.wait_page_load(here) assert 'Create' in self.driver.title username = self.driver.find_element_by_css_selector(input_email) username.send_keys(self.fxa_new_user) pw = self.driver.find_element_by_css_selector(input_password) pw.send_keys(fxa_password) selectBox = Select(self.driver.find_element_by_id(coppa_locator)) selectBox.select_by_visible_text("1999") here = self.driver.current_url self.driver.find_element_by_id(btn_submit).click() self.wait_page_load(here) assert 'Confirm your account' in self.driver.title # verify restmail user restmail_link = getRestmailLink(self.fxa_new_user) here = self.driver.current_url self.driver.get(restmail_link) self.wait_page_load(here) assert 'verified' in self.driver.title link = self.driver.find_element_by_id('redirectTo') here = self.driver.current_url link.click() self.wait_page_load(here) here = self.driver.current_url self.driver.find_element_by_id('logout').click() time.sleep(10) assert 'Do Stuff' in self.driver.title