Closed
Description
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