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

Adding a new test to cover changes to sendkeys() discussed for the spec #17664

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thejohnjansen
Copy link
Contributor

No description provided.

@@ -42,6 +43,20 @@ def test_input_append(session):
assert element.property("value") == "abc"


def test_input_append_with_focus(session):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also have this test for the content editable elements. See the other file in this folder.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this still has to be done.

assert element.property("value") == "a"

element_send_keys(session, element, "b")
assert element.property("value") == "ab"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just set ab as value directly, so that we don't need those two lines.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay, I missed your comment. I'm doing this specifically to verify that even though a is already there (and verified), when I send "b" via sendkeys, the letter "a" is not deleted.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. So give that this test is about appending, can you move out the case for inserting, or modify the test name?

@burg
Copy link
Contributor

burg commented Aug 16, 2019

What is left to land this PR? I'd like to fix Safari's behavior and verify with the test.

@mjzffr mjzffr removed their request for review August 27, 2019 15:19
@gsnedders gsnedders closed this Jan 24, 2020
@gsnedders gsnedders deleted the johnjanInputTestAddition branch January 24, 2020 18:06
@gsnedders gsnedders restored the johnjanInputTestAddition branch January 24, 2020 18:52
@Hexcles Hexcles reopened this Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants