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

Updating test_element to correctly test for 'checked' property #9634

Merged
merged 2 commits into from Feb 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions webdriver/tests/state/get_element_property.py
Expand Up @@ -161,9 +161,8 @@ def test_element(session):
session.url = inline("<input type=checkbox>")
element = session.find.css("input", all=False)
element.click()
assert None == session.execute_script("return arguments[0].hasAttribute('checked')",
args=[element])
result = session.transport.send("GET", "session/{session_id}/element/{element_id}/property/id"
assert session.execute_script("return arguments[0].hasAttribute('checked')", args=(element,)) is False
result = session.transport.send("GET", "session/{session_id}/element/{element_id}/property/checked"
.format(session_id=session.session_id,
element_id=element.id))
assert_success(result, True)