update region and city locators to be more robust and match country locator

This commit is contained in:
Dylan Chun Wong 2014-08-04 11:18:15 -07:00
Родитель 56697b36d9
Коммит aa8ab84f4c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -24,8 +24,8 @@ class Profile(Base):
_groups_locator = (By.ID, 'groups')
_languages_locator = (By.ID, 'languages')
_location_locator = (By.ID, 'location')
_city_locator = (By.CSS_SELECTOR, '#location > a:nth-child(2)')
_region_locator = (By.CSS_SELECTOR, '#location > a:nth-child(3)')
_city_locator = (By.CSS_SELECTOR, '#location .locality')
_region_locator = (By.CSS_SELECTOR, '#location .region')
_country_locator = (By.CSS_SELECTOR, '#location .country-name')
_profile_message_locator = (By.CSS_SELECTOR, '.alert')
_view_as_locator = (By.ID, 'view-privacy-mode')