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
5 changes: 4 additions & 1 deletion pages/footer_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ def click_contact_us_link(self):
# Checking images in the Footer
@allure.step("Get the list of attribute 'src' values of images in links")
def get_images_src(self):
return [image.get_attribute('src') for image in self.get_list_of_images()]
att = [image.get_attribute('src') for image in self.get_list_of_images()]
print(*att, len(att), sep='\n')
return att
# return [image.get_attribute('src') for image in self.get_list_of_images()]

@allure.step("Get the list of attribute 'alt' values of images in links")
def get_images_alt(self):
Expand Down
5 changes: 1 addition & 4 deletions pages/specialists_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,7 @@ 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):
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()]
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
8 changes: 7 additions & 1 deletion test_data/footer_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ class FooterData:
link_status_codes = (200, 301, 403)

s = f"{Links.URL_MAIN_PAGE}logos/"
images_src = (f"{s}logo_ARASAAC_black-6aced95542b919137b28bced5be83596.png",
images_src = (f"{s}logo_ARASAAC_black.png",
f"{s}epam.png",
f"{s}jetbrains-variant-4_.png",
f"{s}reg-ru.svg",
f"{s}selectel.png")

images_src1 = (f"{s}logo_ARASAAC_black-6aced95542b919137b28bced5be83596.png",
f"{s}epam-cd401151c8ee5f14afbba10b72cd5fea.png",
f"{s}jetbrains-variant-4_-fb6c06f46c4a6267ac60e84343940d8b.png",
f"{s}reg-ru.svg",
Expand Down
Loading