Skip to content

Commit 113a11f

Browse files
Merge pull request #558 from Brain-up/issue_402
Issue_402_GROUPS_PAGE_tests
2 parents 27a59e1 + f287a43 commit 113a11f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pages/groups_page.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ def check_links_clickability(self):
145145

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

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

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

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

225223
@allure.step("Get the list of sizes of images in links")
226224
def get_images_sizes(self):
227-
elements = self.get_list_of_images()
228-
return [element.size for element in elements]
225+
return [element.size for element in self.get_list_of_images()]
229226

230227
@allure.step("Check changes of images sizes after resizing")
231228
def check_size_changes_of_images(self):

0 commit comments

Comments
 (0)