Skip to content

Commit a8ed320

Browse files
Merge pull request #666 from Brain-up/issue_189
Issue_189_SPECIALISTS_PAGE_data
2 parents 5eb6ff0 + f001f55 commit a8ed320

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

locators/specialists_page_locators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ class SpecialistsPageLocators:
2020
PAGE_TEXT = (By.XPATH, "//div[contains(@class, 'text-lg')]")
2121
PAGE_TITLE = (By.TAG_NAME, "h2")
2222
SPECIALIST_CARDS = (By.XPATH, "//div[contains(@class, 'rounded-lg')]")
23-
SPECIALIST_NAMES = (By.XPATH, "//div[contains(@class, 'mb-4')]")
23+
SPECIALIST_NAMES = (By.XPATH, "//div[contains(@class, 'mb-4 font')]")
2424
SPECIALIST_PROFESSIONS = (By.XPATH, "//div[@class='font-openSans']")

pages/contributors_page.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ def get_values_of_subtitles(self):
119119

120120
@allure.step("Get content of the text on the page")
121121
def get_text_content_on_page(self):
122-
text = self.element_is_present(self.locators.PAGE_TEXT).text
123-
print(text)
124-
return text
122+
return self.element_is_present(self.locators.PAGE_TEXT).text
125123

126124
@allure.step("Check the content of descriptions in cards")
127125
def check_values_of_card_descriptions(self):

pages/specialists_page.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ def get_text_content_on_page(self):
160160

161161
@allure.step("Get the list of name values in specialist cards on the page")
162162
def get_name_values_in_cards(self):
163-
return [name.text for name in self.get_list_of_names_in_cards()]
163+
text = [name.text for name in self.get_list_of_names_in_cards()]
164+
print(*text)
165+
return text
166+
# return [name.text for name in self.get_list_of_names_in_cards()]
164167

165168
@allure.step("Get the list of profession values in specialist cards on the page")
166169
def get_profession_values_in_cards(self):

0 commit comments

Comments
 (0)