-
Notifications
You must be signed in to change notification settings - Fork 116
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
Form.fill() doesn't clear text inputs before calling sendKeys() #84
Conversation
emaks
commented
May 29, 2015
test this please |
that's good, please squash this commits into one and we'll merge it |
Looks like a code duplication. We have similar issue with other element in past and it was solved there. I think that we should be using corresponding element methods, e.g. |
done |
@emaks wouldn't this change brake filling TextArea elements? |
@artkoshelev, please, see new implementation. |
i think it's better to use StringUtils.defaultString which is null-safe version of String |
@emaks, and answering your question about exceptions, i don't know the reasons behind this implementation, but at least it works exactly as described in javadoc =) |
@@ -61,4 +63,13 @@ public String getText() { | |||
} | |||
return enteredText; | |||
} | |||
|
|||
public void fill(String value) { | |||
// Returns sequence of backspaces and deletes that will clear element |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change comment style to multiline here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
test this please |
@artkoshelev Are there any additional problems with pull request? |
@emaks i just need some time to made a final review |
Form.fill() doesn't clear text inputs before calling sendKeys()
landed, thanks! |