Skip to content

Issue_402_GROUPS_PAGE_tests #558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2025
Merged
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
9 changes: 3 additions & 6 deletions pages/groups_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ def check_links_clickability(self):

@allure.step("Get attribute 'title' of links on the 'ru' local")
def get_links_titles_ru(self):
elements = self.get_list_of_links()
return [element.get_attribute('title') for element in elements]
return [element.get_attribute('title') for element in self.get_list_of_links()]

@allure.step("Get attribute 'title' of links on the 'en' local")
def get_links_titles_en(self):
Expand Down Expand Up @@ -215,17 +214,15 @@ def get_images_src(self):

@allure.step("Get the list of attribute 'alt' values of images in links on the 'ru' local")
def get_images_alt_ru(self):
elements = self.get_list_of_images()
return [element.get_attribute('alt') for element in elements]
return [element.get_attribute('alt') for element in self.get_list_of_images()]

@allure.step("Get the list of attribute 'alt' values of images in links on the 'en' local")
def get_images_alt_en(self):
return [image.get_attribute('alt') for image in self.get_list_of_images()]

@allure.step("Get the list of sizes of images in links")
def get_images_sizes(self):
elements = self.get_list_of_images()
return [element.size for element in elements]
return [element.size for element in self.get_list_of_images()]

@allure.step("Check changes of images sizes after resizing")
def check_size_changes_of_images(self):
Expand Down
Loading