Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion locators/specialists_page_locators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']")
4 changes: 1 addition & 3 deletions pages/contributors_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
5 changes: 4 additions & 1 deletion pages/specialists_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Loading