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

sendKeys calls are not delegated to the input element for some TB field elements #3502

Closed
vursen opened this issue Jul 22, 2022 · 2 comments · Fixed by #3501
Closed

sendKeys calls are not delegated to the input element for some TB field elements #3502

vursen opened this issue Jul 22, 2022 · 2 comments · Fixed by #3501
Labels

Comments

@vursen
Copy link
Contributor

vursen commented Jul 22, 2022

Description

Calling sendKeys directly on the TestBench element has currently no effect for TextFieldElement and BigDecimalFieldElement.

Expected outcome

TextFieldElement and BigDecimalFieldElement should delegate sendKeys calls to the input element, similar to other components e.g. PasswordField:

@Override
public void sendKeys(CharSequence... keysToSend) {
findElement(By.tagName("input")).sendKeys(keysToSend);
}

Environment

Vaadin version(s): 23.2
OS: Mac OS

Browsers

Issue is not browser related

@vursen vursen changed the title sendKeys calls are not delegated to the input element for some components sendKeys calls are not delegated to the input element for some TB elements Jul 22, 2022
@vursen vursen changed the title sendKeys calls are not delegated to the input element for some TB elements sendKeys calls are not delegated to the input element for some TB field elements Jul 22, 2022
@vursen
Copy link
Contributor Author

vursen commented Jul 22, 2022

Hmm, somehow sendKeys works on TextFieldElement even without delegation... it is not clear though how it determines the input where to send keys.

UPD: #3501 (comment)

@yuriy-fix
Copy link
Contributor

Will it be fixed by #3501?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants