diff --git a/locators/specialists_page_locators.py b/locators/specialists_page_locators.py index debebeb6c8..34d463fd44 100644 --- a/locators/specialists_page_locators.py +++ b/locators/specialists_page_locators.py @@ -20,5 +20,5 @@ class SpecialistsPageLocators: PAGE_TEXT = (By.XPATH, "//div[contains(@class, 'text-lg')]") PAGE_TITLE = (By.TAG_NAME, "h2") SPECIALIST_CARDS = (By.XPATH, "//div[contains(@class, 'rounded-lg')]") - SPECIALIST_NAMES = (By.XPATH, "//div[contains(@class, 'mb-4')]") + SPECIALIST_NAMES = (By.XPATH, "//div[contains(@class, 'mb-4 font')]") SPECIALIST_PROFESSIONS = (By.XPATH, "//div[@class='font-openSans']") diff --git a/pages/contributors_page.py b/pages/contributors_page.py index 3626df8272..12078d9ca1 100644 --- a/pages/contributors_page.py +++ b/pages/contributors_page.py @@ -119,9 +119,7 @@ def get_values_of_subtitles(self): @allure.step("Get content of the text on the page") def get_text_content_on_page(self): - text = self.element_is_present(self.locators.PAGE_TEXT).text - print(text) - return text + return self.element_is_present(self.locators.PAGE_TEXT).text @allure.step("Check the content of descriptions in cards") def check_values_of_card_descriptions(self): diff --git a/pages/specialists_page.py b/pages/specialists_page.py index d40f4e2a33..2a86b72701 100644 --- a/pages/specialists_page.py +++ b/pages/specialists_page.py @@ -160,7 +160,10 @@ def get_text_content_on_page(self): @allure.step("Get the list of name values in specialist cards on the page") def get_name_values_in_cards(self): - return [name.text for name in self.get_list_of_names_in_cards()] + text = [name.text for name in self.get_list_of_names_in_cards()] + print(*text) + return text + # return [name.text for name in self.get_list_of_names_in_cards()] @allure.step("Get the list of profession values in specialist cards on the page") def get_profession_values_in_cards(self):