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

Sending keys < or > results in | #91

Closed
bmarroquin opened this issue Sep 26, 2024 · 2 comments · Fixed by #92
Closed

Sending keys < or > results in | #91

bmarroquin opened this issue Sep 26, 2024 · 2 comments · Fixed by #92
Assignees
Labels
bug Something isn't working

Comments

@bmarroquin
Copy link
Contributor

bmarroquin commented Sep 26, 2024

This is a problem with the spec version 2 more than a problem with the implementation here. See w3c/webdriver#1841.

Explanation of why this happens:

  • It looks like the spec defined IntlBackslash as < and > (Shifted) instead of \ and |(shifted).
  • < is defined as both a shifted and not shifted char. Since the implementation determines it is shifted and checks the non-shifted code table first this results in a Shifted IntlBackslash or |
    • Checking the shifted table first would fix this, but then it would prevent using the non-shifted version of <.
  • > is the shifted version of < which results in a Shifted IntlBackslash or |

Spec version 1 has > mapped as the shifted version of .. If we added that and check the shifted table first, everything should work fine. The IntlBackslash is still wrong here though.

@bmarroquin
Copy link
Contributor Author

Ah, this also impacts trying to type .. . is both a shifted and not shifted char. This results in an action sequence of shifted . which always prints >.

@lagori
Copy link

lagori commented Sep 27, 2024

I had the same issue of . yesterday the work around for this is to use the actions class.
Actions actions = new Actions(driver);
actions.MoveToElement(uname)
.Click()
.SendKeys("test.user1")
.Perform();

@aristotelos aristotelos added the bug Something isn't working label Sep 27, 2024
@aristotelos aristotelos self-assigned this Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants