@@ -209,7 +209,7 @@ def test_near_locator_should_find_far_elements_by_locator(driver, pages):
209209def test_should_find_elements_above_another (driver , pages ):
210210 pages .load ("relative_locators.html" )
211211
212- el = driver .find_elements (with_tag_name ("td" ).above ({By .ID : "center" }))
212+ elements = driver .find_elements (with_tag_name ("td" ).above ({By .ID : "center" }))
213213
214214 ids = [el .get_attribute ("id" ) for el in elements ]
215215 assert ids .count () == 3
@@ -221,7 +221,7 @@ def test_should_find_elements_above_another(driver, pages):
221221def test_should_find_elements_below_another (driver , pages ):
222222 pages .load ("relative_locators.html" )
223223
224- el = driver .find_elements (with_tag_name ("td" ).below ({By .ID : "center" }))
224+ elements = driver .find_elements (with_tag_name ("td" ).below ({By .ID : "center" }))
225225
226226 ids = [el .get_attribute ("id" ) for el in elements ]
227227 assert ids .count () == 3
@@ -233,7 +233,7 @@ def test_should_find_elements_below_another(driver, pages):
233233def test_should_find_elements_left_of_another (driver , pages ):
234234 pages .load ("relative_locators.html" )
235235
236- el = driver .find_elements (with_tag_name ("td" ).to_left_of ({By .ID : "center" }))
236+ elements = driver .find_elements (with_tag_name ("td" ).to_left_of ({By .ID : "center" }))
237237
238238 ids = [el .get_attribute ("id" ) for el in elements ]
239239 assert ids .count () == 3
@@ -245,7 +245,7 @@ def test_should_find_elements_left_of_another(driver, pages):
245245def test_should_find_elements_right_of_another (driver , pages ):
246246 pages .load ("relative_locators.html" )
247247
248- el = driver .find_elements (with_tag_name ("td" ).to_right_of ({By .ID : "center" }))
248+ elements = driver .find_elements (with_tag_name ("td" ).to_right_of ({By .ID : "center" }))
249249
250250 ids = [el .get_attribute ("id" ) for el in elements ]
251251 assert ids .count () == 3
@@ -257,7 +257,7 @@ def test_should_find_elements_right_of_another(driver, pages):
257257def test_should_find_elements_straight_above_another (driver , pages ):
258258 pages .load ("relative_locators.html" )
259259
260- el = driver .find_elements (with_tag_name ("td" ).above ({By .ID : "bottom" }))
260+ elements = driver .find_elements (with_tag_name ("td" ).above ({By .ID : "bottom" }))
261261
262262 ids = [el .get_attribute ("id" ) for el in elements ]
263263 assert ids .count () == 2
@@ -268,7 +268,7 @@ def test_should_find_elements_straight_above_another(driver, pages):
268268def test_should_find_elements_straight_below_another (driver , pages ):
269269 pages .load ("relative_locators.html" )
270270
271- el = driver .find_elements (with_tag_name ("td" ).below ({By .ID : "top" }))
271+ elements = driver .find_elements (with_tag_name ("td" ).below ({By .ID : "top" }))
272272
273273 ids = [el .get_attribute ("id" ) for el in elements ]
274274 assert ids .count () == 2
@@ -279,7 +279,7 @@ def test_should_find_elements_straight_below_another(driver, pages):
279279def test_should_find_elements_straight_left_of_another (driver , pages ):
280280 pages .load ("relative_locators.html" )
281281
282- el = driver .find_elements (with_tag_name ("td" ).to_left_of ({By .ID : "right" }))
282+ elements = driver .find_elements (with_tag_name ("td" ).to_left_of ({By .ID : "right" }))
283283
284284 ids = [el .get_attribute ("id" ) for el in elements ]
285285 assert ids .count () == 2
@@ -290,7 +290,7 @@ def test_should_find_elements_straight_left_of_another(driver, pages):
290290def test_should_find_elements_straight_right_of_another (driver , pages ):
291291 pages .load ("relative_locators.html" )
292292
293- el = driver .find_elements (with_tag_name ("td" ).to_right_of ({By .ID : "left" }))
293+ elements = driver .find_elements (with_tag_name ("td" ).to_right_of ({By .ID : "left" }))
294294
295295 ids = [el .get_attribute ("id" ) for el in elements ]
296296 assert ids .count () == 2
0 commit comments