--Windows 10 Pro, 64bit Version 2004 Build 19041
<NG>send_Use keys (garbled pattern)
el = driver.find_element_by_id('target_id')
el.send_keys('Mojibake Mojibake')
<OK>execute_Use script (can avoid garbled characters)
driver.execute_script(
'document.getElementById("target_id").value="%s";' %
'Mojibake Mojibake!'
)
I haven't digged deep into it, but it says that IE's WebDriver can be patched. Chrome Driver does not seem to have a public repository.
-[2019/05 article] [[Selenium] What to do when half-width katakana is garbled on Windows \ | Engineer's sleepless night](https://sleepless-se.net/2019/05/16/selenium -windows-input-hankaku-kana-error /) -[2013/09 article] Selenium WebDriver -Enter half-width kana with SendKeys: @jsakamoto
Recommended Posts