Skip to content

Commit a7e2a53

Browse files
committed
[py] Fix typo in fixture name
1 parent 55c115c commit a7e2a53

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

py/test/selenium/webdriver/remote/custom_element_tests.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,24 @@ def custom_method(self):
2828

2929

3030
@pytest.fixture()
31-
def custom_elenment_driver(driver):
31+
def custom_element_driver(driver):
3232
driver._web_element_cls = MyCustomElement
3333
yield driver
3434
driver._web_element_cls = WebElement
3535

3636

37-
def test_find_element_with_custom_class(custom_elenment_driver, pages):
37+
def test_find_element_with_custom_class(custom_element_driver, pages):
3838
"""Test to ensure custom element class is used for a single element."""
3939
pages.load("simpleTest.html")
40-
element = custom_elenment_driver.find_element(By.TAG_NAME, "body")
40+
element = custom_element_driver.find_element(By.TAG_NAME, "body")
4141
assert isinstance(element, MyCustomElement)
4242
assert element.custom_method() == "Custom element method"
4343

4444

45-
def test_find_elements_with_custom_class(custom_elenment_driver, pages):
45+
def test_find_elements_with_custom_class(custom_element_driver, pages):
4646
"""Test to ensure custom element class is used for multiple elements."""
4747
pages.load("simpleTest.html")
48-
elements = custom_elenment_driver.find_elements(By.TAG_NAME, "div")
48+
elements = custom_element_driver.find_elements(By.TAG_NAME, "div")
4949
assert all(isinstance(el, MyCustomElement) for el in elements)
5050
assert all(el.custom_method() == "Custom element method" for el in elements)
5151

0 commit comments

Comments
 (0)