Skip to content

Commit fa44274

Browse files
committed
wrong variable name in python tests
1 parent dbbd976 commit fa44274

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

py/test/selenium/webdriver/support/relative_by_tests.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def test_near_locator_should_find_far_elements_by_locator(driver, pages):
209209
def 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):
221221
def 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):
233233
def 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):
245245
def 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):
257257
def 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):
268268
def 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):
279279
def 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):
290290
def 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

Comments
 (0)