Skip to content

Commit

Permalink
Merge pull request mozilla#206 from retornam/appsfix
Browse files Browse the repository at this point in the history
Updating locators for newsletter on apps page
  • Loading branch information
vaidik committed Jul 1, 2013
2 parents 92fa136 + 0a4fbd4 commit 514b794
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pages/desktop/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def go_to_page(self):
_showcased_apps_links_locator = (By.CSS_SELECTOR, 'div.billboard a')
_sign_up_form_locator = (By.ID, 'footer-email-form')
_sign_up_form_email_input_locator = (By.ID, 'id_email')
_sign_up_form_html_radio_locator = (By.ID, 'id_fmt_0')
_sign_up_form_text_radio_locator = (By.ID, 'id_fmt_1')
_sign_up_form_privacy_checkbox_locator = (By.ID, 'id_privacy')
_sign_up_form_html_radio_locator = (By.CSS_SELECTOR, '.field-format > label:nth-of-type(1)')
_sign_up_form_text_radio_locator = (By.CSS_SELECTOR, '.field-format > label:nth-of-type(2)')
_sign_up_form_privacy_checkbox_locator = (By.CSS_SELECTOR, '.privacy-check-label')
_sign_up_form_submit_button_locator = (By.ID, 'footer_email_submit')

@property
Expand All @@ -65,3 +65,5 @@ def are_sign_up_form_fields_visible(self):

def expand_sign_up_form(self):
self.selenium.find_element(*self._sign_up_form_email_input_locator).click()
WebDriverWait(self.selenium, self.timeout).until(lambda s: s.find_element(*self._sign_up_form_text_radio_locator))

0 comments on commit 514b794

Please sign in to comment.