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

ElementSendKeys sends characters with incorrect locale #129

Open
PiotrNestor opened this issue Jan 10, 2025 · 4 comments
Open

ElementSendKeys sends characters with incorrect locale #129

PiotrNestor opened this issue Jan 10, 2025 · 4 comments

Comments

@PiotrNestor
Copy link

FlaUI/FlaUI.WebDriver v0.3.1

ElementSendKeys request is:

info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102]
      Route matched with {action = "ElementSendKeys", controller = "Element"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] ElementSendKeys(System.String, System.String, FlaUI.WebDriver.Models.ElementSendKeysRequest) on controller FlaUI.WebDriver.Controllers.ElementController (FlaUI.WebDriver).

A string like

://

is input into the application like

^''

There is clearly a locale keyboard / character mapping mismatch
How to fix this?

@jensakejohansson
Copy link
Contributor

After investigation we realised that the keyboard mapping in the driver implementation only seems to support US-keyboard layout.

We have in our case english windows, but swedish keyboard layout. That causes the outcome above.

@hugoMeier hugoMeier marked this as a duplicate of #136 Feb 6, 2025
@hugoMeier
Copy link

I have the same problem with the German keyboard layout.
Is there currently a different solution to the problem besides changing the keyboard layout?

@hugoMeier
Copy link

Are there efforts to solve this problem soon?

@bmarroquin
Copy link
Contributor

My assumption is that nothing will happen for this until the web driver specification itself addresses the problem.

See w3c/webdriver#1743

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

No branches or pull requests

4 participants