@@ -145,8 +145,7 @@ def check_links_clickability(self):
145
145
146
146
@allure .step ("Get attribute 'title' of links on the 'ru' local" )
147
147
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 ()]
150
149
151
150
@allure .step ("Get attribute 'title' of links on the 'en' local" )
152
151
def get_links_titles_en (self ):
@@ -215,17 +214,15 @@ def get_images_src(self):
215
214
216
215
@allure .step ("Get the list of attribute 'alt' values of images in links on the 'ru' local" )
217
216
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 ()]
220
218
221
219
@allure .step ("Get the list of attribute 'alt' values of images in links on the 'en' local" )
222
220
def get_images_alt_en (self ):
223
221
return [image .get_attribute ('alt' ) for image in self .get_list_of_images ()]
224
222
225
223
@allure .step ("Get the list of sizes of images in links" )
226
224
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 ()]
229
226
230
227
@allure .step ("Check changes of images sizes after resizing" )
231
228
def check_size_changes_of_images (self ):
0 commit comments