Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[py] fix tests in correct_event_firing_tests.py #14510

Merged
merged 2 commits into from
Sep 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions py/test/selenium/webdriver/common/correct_event_firing_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,21 +111,20 @@ def test_clearing_an_element_should_cause_the_on_change_handler_to_fire(driver,
assert result.text == "Cleared"


# TODO Currently Failing and needs fixing
# def test_sending_keys_to_another_element_should_cause_the_blur_event_to_fire(driver, pages):
# pages.load("javascriptPage.html")
# element = driver.find_element(By.ID, "theworks")
# element.send_keys("foo")
# element2 = driver.find_element(By.ID, "changeable")
# element2.send_keys("bar")
# _assertEventFired(driver, "blur")

# TODO Currently Failing and needs fixing
# def test_sending_keys_to_an_element_should_cause_the_focus_event_to_fire(driver, pages):
# pages.load("javascriptPage.html")
# element = driver.find_element(By.ID, "theworks")
# element.send_keys("foo")
# _assertEventFired(driver, "focus")
def test_sending_keys_to_another_element_should_cause_the_blur_event_to_fire(driver, pages):
pages.load("javascriptPage.html")
element = driver.find_element(By.ID, "theworks")
element.send_keys("foo")
element2 = driver.find_element(By.ID, "changeable")
element2.send_keys("bar")
_assert_event_fired(driver, "blur")


def test_sending_keys_to_an_element_should_cause_the_focus_event_to_fire(driver, pages):
pages.load("javascriptPage.html")
element = driver.find_element(By.ID, "theworks")
element.send_keys("foo")
_assert_event_fired(driver, "focus")


def _click_on_element_which_records_events(driver):
Expand Down
Loading