This commit is contained in:
sashakruglov 2013-02-01 23:08:18 +04:00
Родитель c19005aaed
Коммит d77b1466b0
3 изменённых файлов: 8 добавлений и 8 удалений

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

@ -70,14 +70,14 @@ class MozTrapCreateBulkCasesPage(MozTrapBasePage):
@property
def product_value(self):
product_select = self.find_element(*self._product_select_locator)
return Select(product_select).first_selected_option.text
return product_select.find_element(By.CSS_SELECTOR, 'option:checked').text
@property
def product_version_value(self):
version_select = self.find_element(*self._version_select_locator)
return Select(version_select).first_selected_option.text
return version_select.find_element(By.CSS_SELECTOR, 'option:checked').text
@property
def suite_value(self):
suite_select = self.find_element(*self._suite_select_locator)
return Select(suite_select).first_selected_option.text
return suite_select.find_element(By.CSS_SELECTOR, 'option:checked').text

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

@ -65,14 +65,14 @@ class MozTrapCreateCasePage(MozTrapBasePage):
@property
def product_value(self):
product_select = self.find_element(*self._product_select_locator)
return Select(product_select).first_selected_option.text
return product_select.find_element(By.CSS_SELECTOR, 'option:checked').text
@property
def product_version_value(self):
version_select = self.find_element(*self._version_select_locator)
return Select(version_select).first_selected_option.text
return version_select.find_element(By.CSS_SELECTOR, 'option:checked').text
@property
def suite_value(self):
suite_select = self.find_element(*self._suite_select_locator)
return Select(suite_select).first_selected_option.text
return suite_select.find_element(By.CSS_SELECTOR, 'option:checked').text

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

@ -74,5 +74,5 @@ class MozTrapCreateRunPage(MozTrapBasePage):
@property
def product_version(self):
product_version_select = Select(self.selenium.find_element(*self._product_version_select_locator))
return product_version_select.first_selected_option.text
product_version_select = self.find_element(*self._product_version_select_locator)
return product_version_select.find_element(By.CSS_SELECTOR, 'option:checked').text