Permalink
Browse files

update locator

  • Loading branch information...
1 parent 7aac885 commit d934e22846b95fc1c772fd935760d9c7f6033815 Bebe committed Jul 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 pages/create_profile_page.py
@@ -18,7 +18,7 @@ class MozTrapCreateProfilePage(MozTrapBasePage):
_page_title = 'MozTrap'
_profile_name_locator = (By.ID, 'id_name')
- _select_category_locator = (By.CSS_SELECTOR, '#profile-add-form .itemlist .bulkselectitem[data-title="%(category_name)s"] .bulk-value')
+ _select_category_locator = (By.CSS_SELECTOR, '#profile-add-form .itemlist .bulkselectitem[data-title="%(category_name)s"] .listitem .itembody .element[data-title="%(element_name)s"] label')
_delete_category_locator = (By.CSS_SELECTOR, '#profile-add-form .itemlist .bulkselectitem .action-delete[title="delete %(category_name)s"]')
_add_category_locator = (By.CSS_SELECTOR, '#profile-add-form .itemlist .add-item .itemhead')
_add_category_input_locator = (By.ID, 'new-category-name')
@@ -38,7 +38,7 @@ def create_profile(self, name='Test Profile', category_name='Test Category', ele
profile['category'] = u'%(category_name)s %(dt_string)s' % {'category_name': category_name, 'dt_string': dt_string}
profile['element'] = u'%(element_name)s %(dt_string)s' % {'element_name': element_name, 'dt_string': dt_string}
profile['locator'] = (self._profile_locator[0], self._profile_locator[1] % {'profile_name': profile['name']})
- _select_category_locator = (self._select_category_locator[0], self._select_category_locator[1] % {'category_name': profile['category']})
+ _select_category_locator = (self._select_category_locator[0], self._select_category_locator[1] % {'category_name': profile['category'], 'element_name': profile['element']})
_add_element_input_locator = (self._add_element_input_locator[0], self._add_element_input_locator[1] % {'category_name': profile['category']})
_new_element_locator = (self._new_element_locator[0], self._new_element_locator[1] % {'category_name': profile['category'], 'element_name': profile['element']})

0 comments on commit d934e22

Please sign in to comment.