Skip to content

[🐛 Bug]: ! not being sent by send_keys() in Python using Swiss keyboard on Mac M1 with Chrome #14847

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

Closed
fusiller opened this issue Dec 3, 2024 · 5 comments
Labels
G-chromedriver Requires fixes in ChromeDriver I-defect Something is not working as intended

Comments

@fusiller
Copy link

fusiller commented Dec 3, 2024

What happened?

Strangely enough it seems to me that '!' is the only one character I can't write in a web browser field using send_keys().
I even tried to send only "!", and then multiple "!!!". None of them go through.
On my Swiss keyboard the corresponding key is located very next to the Return key, where one would find the } / ] key.
And '}' would go through though, no problem.

How can we reproduce the issue?

browser = webdriver.Chrome()
browser.implicitly_wait(4)
browser.get('https://app.assoconnect.com/login')
browser.find_element(By.ID, "email").send_keys("!")
input("Press Enter to continue...")
exit()

Relevant log output

Selenium Manager binary found at: /Users/alexandre/anaconda3/envs/python3.9/lib/python3.9/site-packages/selenium/webdriver/common/macos/selenium-manager
Executing process: /Users/alexandre/anaconda3/envs/python3.9/lib/python3.9/site-packages/selenium/webdriver/common/macos/selenium-manager --browser chrome --debug --language-binding python --output json
chromedriver not found in PATH
chrome detected at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Running command: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version
Output: "Google Chrome 131.0.6778.86 "
Detected browser: chrome 131.0.6778.86
Required driver: chromedriver 131.0.6778.85
chromedriver 131.0.6778.85 already in the cache
Driver path: /Users/alexandre/.cache/selenium/chromedriver/mac-arm64/131.0.6778.85/chromedriver
Browser path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Started executable: `/Users/alexandre/.cache/selenium/chromedriver/mac-arm64/131.0.6778.85/chromedriver` in a child process with pid: 3479 using 0 to output -3
POST http://localhost:61334/session {'capabilities': {'firstMatch': [{}], 'alwaysMatch': {'browserName': 'chrome', 'pageLoadStrategy': <PageLoadStrategy.normal: 'normal'>, 'browserVersion': None, 'goog:chromeOptions': {'extensions': [], 'binary': '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', 'args': []}}}}
Remote response: status=200 | data={"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"chrome","browserVersion":"131.0.6778.86","chrome":{"chromedriverVersion":"131.0.6778.85 (3d81e41b6f3ac8bcae63b32e8145c9eb0cd60a2d-refs/branch-heads/6778@{#2285})","userDataDir":"/var/folders/2f/h0rp9c1j04g01zcxy8q5rp100000gn/T/.org.chromium.Chromium.mhd9Ox"},"fedcm:accounts":true,"goog:chromeOptions":{"debuggerAddress":"localhost:61341"},"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platformName":"mac","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify","webauthn:extension:credBlob":true,"webauthn:extension:largeBlob":true,"webauthn:extension:minPinLength":true,"webauthn:extension:prf":true,"webauthn:virtualAuthenticators":true},"sessionId":"8c3baaa559f47c61c6bf5ade47fabe71"}} | headers=HTTPHeaderDict({'Content-Length': '890', 'Content-Type': 'application/json; charset=utf-8', 'cache-control': 'no-cache'})
Finished Request
POST http://localhost:61334/session/8c3baaa559f47c61c6bf5ade47fabe71/timeouts {'implicit': 4000}
Remote response: status=200 | data={"value":null} | headers=HTTPHeaderDict({'Content-Length': '14', 'Content-Type': 'application/json; charset=utf-8', 'cache-control': 'no-cache'})
Finished Request
POST http://localhost:61334/session/8c3baaa559f47c61c6bf5ade47fabe71/url {'url': 'https://app.assoconnect.com/login'}
Remote response: status=200 | data={"value":null} | headers=HTTPHeaderDict({'Content-Length': '14', 'Content-Type': 'application/json; charset=utf-8', 'cache-control': 'no-cache'})
Finished Request
POST http://localhost:61334/session/8c3baaa559f47c61c6bf5ade47fabe71/element {'using': 'css selector', 'value': '[id="email"]'}
Remote response: status=200 | data={"value":{"element-6066-11e4-a52e-4f735466cecf":"f.E279FD35DFBE677D187D625806A18E45.d.0406E8F7B5A88692DD5552921A766853.e.4"}} | headers=HTTPHeaderDict({'Content-Length': '125', 'Content-Type': 'application/json; charset=utf-8', 'cache-control': 'no-cache'})
Finished Request
POST http://localhost:61334/session/8c3baaa559f47c61c6bf5ade47fabe71/element/f.E279FD35DFBE677D187D625806A18E45.d.0406E8F7B5A88692DD5552921A766853.e.4/value {'text': '!', 'value': ['!']}
Remote response: status=200 | data={"value":null} | headers=HTTPHeaderDict({'Content-Length': '14', 'Content-Type': 'application/json; charset=utf-8', 'cache-control': 'no-cache'})
Finished Request

Operating System

macOS Sonoma 14.4.1 (23E224)

Selenium version

4.25.0

What are the browser(s) and version(s) where you see this issue?

Chrome Version 131.0.6778.86 (Build officiel) (arm64)

What are the browser driver(s) and version(s) where you see this issue?

same as above

Are you using Selenium Grid?

No response

@fusiller fusiller added I-defect Something is not working as intended A-needs-triaging A Selenium member will evaluate this soon! labels Dec 3, 2024
Copy link

github-actions bot commented Dec 3, 2024

@fusiller, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@nvborisenko
Copy link
Member

Related to #14551

@rivierch
Copy link

rivierch commented Mar 10, 2025

Any resolution Plan ?
same issue on mac, without swiss keyboard

@titusfortner
Copy link
Member

What keyboard is attached to the system shouldn't affect the code that is getting sent to the driver.

If Selenium is sending the command to the driver, but the browser is not properly recognizing it, then this is going to be an issue with the driver.

@titusfortner titusfortner added G-chromedriver Requires fixes in ChromeDriver and removed A-needs-triaging A Selenium member will evaluate this soon! labels May 5, 2025
@selenium-ci
Copy link
Member

Hi, @fusiller.
This issue has been determined to require fixes in ChromeDriver.

You can see if the feature is passing in the Web Platform Tests.

If it is something new, please create an issue with the ChromeDriver team.
Feel free to comment the issues that you raise back in this issue. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
G-chromedriver Requires fixes in ChromeDriver I-defect Something is not working as intended
Projects
None yet
Development

No branches or pull requests

5 participants