OS: Windows 10
Selenium Version: 3.5.1
Browser: Internet Explorer
Browser Version: 11.540.15063.0
new Actions(driver).sendKeys("RD:.* PN:TEST-PA\\ST-1").perform(); should send RD:.* PN:TEST-PA\ST-1 into the focused text field
new Actions(driver).sendKeys("RD:.* PN:TEST-PA\\ST-1").perform(); sends RD:.* PN:TEST-PAßST-1 into the focused text field
Execute new Actions(driver).sendKeys("RD:.* PN:TEST-PA\\ST-1").perform(); under german keyboard settings. If you use us settings, everything works like expected.
With the previous version (3.4.0) of iedriver everything works like expected.
Here is the log from 3.5.1 with german keyboard setting (error):
T 2017-08-21 15:44:23:984 server.cc(174) Entering Server::ProcessRequest
T 2017-08-21 15:44:23:984 server.cc(238) Entering Server::ReadRequestBody
T 2017-08-21 15:44:23:984 server.cc(183) Process request with: URI: /session/b07477fc-48fc-4f2f-9350-9523bd787237/actions HTTP verb: POST
body: {"actions":[{"type":"key","actions":[{"type":"keyDown","value":"R"},{"type":"keyUp","value":"R"},{"type":"keyDown","value":"D"},{"type":"keyUp","value":"D"},{"type":"keyDown","value":":"},{"type":"keyUp","value":":"},{"type":"keyDown","value":"."},{"type":"keyUp","value":"."},{"type":"keyDown","value":"*"},{"type":"keyUp","value":"*"},{"type":"keyDown","value":" "},{"type":"keyUp","value":" "},{"type":"keyDown","value":"P"},{"type":"keyUp","value":"P"},{"type":"keyDown","value":"N"},{"type":"keyUp","value":"N"},{"type":"keyDown","value":":"},{"type":"keyUp","value":":"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"E"},{"type":"keyUp","value":"E"},{"type":"keyDown","value":"S"},{"type":"keyUp","value":"S"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"-"},{"type":"keyUp","value":"-"},{"type":"keyDown","value":"P"},{"type":"keyUp","value":"P"},{"type":"keyDown","value":"A"},{"type":"keyUp","value":"A"},{"type":"keyDown","value":"\\"},{"type":"keyUp","value":"\\"},{"type":"keyDown","value":"S"},{"type":"keyUp","value":"S"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"-"},{"type":"keyUp","value":"-"},{"type":"keyDown","value":"1"},{"type":"keyUp","value":"1"}],"id":"default keyboard"}]}
T 2017-08-21 15:44:23:984 server.cc(272) Entering Server::DispatchCommand
T 2017-08-21 15:44:23:984 server.cc(583) Entering Server::LookupCommand
D 2017-08-21 15:44:23:984 server.cc(281) Command: POST /session/b07477fc-48fc-4f2f-9350-9523bd787237/actions {"actions":[{"type":"key","actions":[{"type":"keyDown","value":"R"},{"type":"keyUp","value":"R"},{"type":"keyDown","value":"D"},{"type":"keyUp","value":"D"},{"type":"keyDown","value":":"},{"type":"keyUp","value":":"},{"type":"keyDown","value":"."},{"type":"keyUp","value":"."},{"type":"keyDown","value":"*"},{"type":"keyUp","value":"*"},{"type":"keyDown","value":" "},{"type":"keyUp","value":" "},{"type":"keyDown","value":"P"},{"type":"keyUp","value":"P"},{"type":"keyDown","value":"N"},{"type":"keyUp","value":"N"},{"type":"keyDown","value":":"},{"type":"keyUp","value":":"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"E"},{"type":"keyUp","value":"E"},{"type":"keyDown","value":"S"},{"type":"keyUp","value":"S"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"-"},{"type":"keyUp","value":"-"},{"type":"keyDown","value":"P"},{"type":"keyUp","value":"P"},{"type":"keyDown","value":"A"},{"type":"keyUp","value":"A"},{"type":"keyDown","value":"\\"},{"type":"keyUp","value":"\\"},{"type":"keyDown","value":"S"},{"type":"keyUp","value":"S"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"-"},{"type":"keyUp","value":"-"},{"type":"keyDown","value":"1"},{"type":"keyUp","value":"1"}],"id":"default keyboard"}]}
T 2017-08-21 15:44:23:984 server.cc(378) Entering Server::LookupSession
T 2017-08-21 15:44:23:984 IESession.cpp(191) Entering IESession::ExecuteCommand
T 2017-08-21 15:44:23:984 IECommandExecutor.cpp(122) Entering IECommandExecutor::OnSetCommand
T 2017-08-21 15:44:23:984 command.cc(31) Entering Command::Deserialize
D 2017-08-21 15:44:23:984 command.cc(36) Raw JSON command: { "name" : "performActions", "locator" : { "sessionid" : "b07477fc-48fc-4f2f-9350-9523bd787237" }, "parameters" : {"actions":[{"type":"key","actions":[{"type":"keyDown","value":"R"},{"type":"keyUp","value":"R"},{"type":"keyDown","value":"D"},{"type":"keyUp","value":"D"},{"type":"keyDown","value":":"},{"type":"keyUp","value":":"},{"type":"keyDown","value":"."},{"type":"keyUp","value":"."},{"type":"keyDown","value":"*"},{"type":"keyUp","value":"*"},{"type":"keyDown","value":" "},{"type":"keyUp","value":" "},{"type":"keyDown","value":"P"},{"type":"keyUp","value":"P"},{"type":"keyDown","value":"N"},{"type":"keyUp","value":"N"},{"type":"keyDown","value":":"},{"type":"keyUp","value":":"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"E"},{"type":"keyUp","value":"E"},{"type":"keyDown","value":"S"},{"type":"keyUp","value":"S"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"-"},{"type":"keyUp","value":"-"},{"type":"keyDown","value":"P"},{"type":"keyUp","value":"P"},{"type":"keyDown","value":"A"},{"type":"keyUp","value":"A"},{"type":"keyDown","value":"\\"},{"type":"keyUp","value":"\\"},{"type":"keyDown","value":"S"},{"type":"keyUp","value":"S"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"-"},{"type":"keyUp","value":"-"},{"type":"keyDown","value":"1"},{"type":"keyUp","value":"1"}],"id":"default keyboard"}]} }
T 2017-08-21 15:44:23:985 IECommandExecutor.cpp(133) Entering IECommandExecutor::OnExecCommand
T 2017-08-21 15:44:23:985 IESession.cpp(212) Beginning wait for response length to be not zero
T 2017-08-21 15:44:23:985 IECommandExecutor.cpp(454) Entering IECommandExecutor::DispatchCommand
T 2017-08-21 15:44:23:985 IECommandExecutor.cpp(567) Entering IECommandExecutor::GetCurrentBrowser
T 2017-08-21 15:44:23:985 IECommandExecutor.cpp(573) Entering IECommandExecutor::GetManagedBrowser
T 2017-08-21 15:44:23:985 IECommandExecutor.cpp(523) Entering IECommandExecutor::IsAlertActive
T 2017-08-21 15:44:23:985 Browser.cpp(713) Entering Browser::GetActiveDialogWindowHandle
T 2017-08-21 15:44:23:985 Browser.cpp(206) Entering Browser::GetContentWindowHandle
D 2017-08-21 15:44:23:985 IECommandExecutor.cpp(537) No alert handle is found
T 2017-08-21 15:44:23:986 IECommandExecutor.cpp(567) Entering IECommandExecutor::GetCurrentBrowser
T 2017-08-21 15:44:23:986 IECommandExecutor.cpp(573) Entering IECommandExecutor::GetManagedBrowser
T 2017-08-21 15:44:23:986 InputManager.cpp(80) Entering InputManager::PerformInputSequence
D 2017-08-21 15:44:23:986 InputManager.cpp(101) Mutex acquired for user interaction.
T 2017-08-21 15:44:23:986 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:986 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:986 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:986 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:986 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:986 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:986 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:986 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:987 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:987 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:988 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:988 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:988 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:988 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:988 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:988 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:988 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:988 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:988 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:988 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:988 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:988 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:988 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:988 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:988 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:988 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:988 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:23:988 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:44:23:988 HookProcessor.cpp(94) Entering HookProcessor::Initialize
T 2017-08-21 15:44:23:988 HookProcessor.cpp(104) Entering HookProcessor::Initialize
T 2017-08-21 15:44:23:988 HookProcessor.cpp(167) Entering HookProcessor::InstallWindowsHook
T 2017-08-21 15:44:23:988 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:44:24:099 HookProcessor.cpp(244) Entering HookProcessor::Dispose
T 2017-08-21 15:44:24:099 HookProcessor.cpp(197) Entering HookProcessor::UninstallWindowsHook
T 2017-08-21 15:44:24:099 HookProcessor.cpp(244) Entering HookProcessor::Dispose
T 2017-08-21 15:44:24:154 response.cc(72) Entering Response::SetSuccessResponse
T 2017-08-21 15:44:24:154 response.cc(78) Entering Response::SetResponse
T 2017-08-21 15:44:24:154 IECommandExecutor.cpp(567) Entering IECommandExecutor::GetCurrentBrowser
T 2017-08-21 15:44:24:154 IECommandExecutor.cpp(573) Entering IECommandExecutor::GetManagedBrowser
T 2017-08-21 15:44:24:154 response.cc(51) Entering Response::Serialize
T 2017-08-21 15:44:24:154 IESession.cpp(221) Found non-zero response length
T 2017-08-21 15:44:24:154 IECommandExecutor.cpp(156) Entering IECommandExecutor::OnGetResponse
T 2017-08-21 15:44:24:154 IECommandExecutor.cpp(285) Entering IECommandExecutor::OnIsSessionValid
D 2017-08-21 15:44:24:154 server.cc(338) Response: {"value":null}
T 2017-08-21 15:44:24:154 server.cc(391) Entering Server::SendResponseToClient
T 2017-08-21 15:44:24:154 response.cc(30) Entering Response::Deserialize
T 2017-08-21 15:44:24:154 server.cc(445) Entering Server::SendHttpOk
Here is the log from 3.5.1 with us keyboard settings (works like expected):
T 2017-08-21 15:42:36:934 server.cc(174) Entering Server::ProcessRequest
T 2017-08-21 15:42:36:934 server.cc(238) Entering Server::ReadRequestBody
T 2017-08-21 15:42:36:934 server.cc(183) Process request with: URI: /session/6bc4e112-8a2c-4c88-8390-8ddd83f5adec/actions HTTP verb: POST
body: {"actions":[{"type":"key","actions":[{"type":"keyDown","value":"R"},{"type":"keyUp","value":"R"},{"type":"keyDown","value":"D"},{"type":"keyUp","value":"D"},{"type":"keyDown","value":":"},{"type":"keyUp","value":":"},{"type":"keyDown","value":"."},{"type":"keyUp","value":"."},{"type":"keyDown","value":"*"},{"type":"keyUp","value":"*"},{"type":"keyDown","value":" "},{"type":"keyUp","value":" "},{"type":"keyDown","value":"P"},{"type":"keyUp","value":"P"},{"type":"keyDown","value":"N"},{"type":"keyUp","value":"N"},{"type":"keyDown","value":":"},{"type":"keyUp","value":":"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"E"},{"type":"keyUp","value":"E"},{"type":"keyDown","value":"S"},{"type":"keyUp","value":"S"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"-"},{"type":"keyUp","value":"-"},{"type":"keyDown","value":"P"},{"type":"keyUp","value":"P"},{"type":"keyDown","value":"A"},{"type":"keyUp","value":"A"},{"type":"keyDown","value":"\\"},{"type":"keyUp","value":"\\"},{"type":"keyDown","value":"S"},{"type":"keyUp","value":"S"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"-"},{"type":"keyUp","value":"-"},{"type":"keyDown","value":"1"},{"type":"keyUp","value":"1"}],"id":"default keyboard"}]}
T 2017-08-21 15:42:36:934 server.cc(272) Entering Server::DispatchCommand
T 2017-08-21 15:42:36:934 server.cc(583) Entering Server::LookupCommand
D 2017-08-21 15:42:36:934 server.cc(281) Command: POST /session/6bc4e112-8a2c-4c88-8390-8ddd83f5adec/actions {"actions":[{"type":"key","actions":[{"type":"keyDown","value":"R"},{"type":"keyUp","value":"R"},{"type":"keyDown","value":"D"},{"type":"keyUp","value":"D"},{"type":"keyDown","value":":"},{"type":"keyUp","value":":"},{"type":"keyDown","value":"."},{"type":"keyUp","value":"."},{"type":"keyDown","value":"*"},{"type":"keyUp","value":"*"},{"type":"keyDown","value":" "},{"type":"keyUp","value":" "},{"type":"keyDown","value":"P"},{"type":"keyUp","value":"P"},{"type":"keyDown","value":"N"},{"type":"keyUp","value":"N"},{"type":"keyDown","value":":"},{"type":"keyUp","value":":"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"E"},{"type":"keyUp","value":"E"},{"type":"keyDown","value":"S"},{"type":"keyUp","value":"S"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"-"},{"type":"keyUp","value":"-"},{"type":"keyDown","value":"P"},{"type":"keyUp","value":"P"},{"type":"keyDown","value":"A"},{"type":"keyUp","value":"A"},{"type":"keyDown","value":"\\"},{"type":"keyUp","value":"\\"},{"type":"keyDown","value":"S"},{"type":"keyUp","value":"S"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"-"},{"type":"keyUp","value":"-"},{"type":"keyDown","value":"1"},{"type":"keyUp","value":"1"}],"id":"default keyboard"}]}
T 2017-08-21 15:42:36:934 server.cc(378) Entering Server::LookupSession
T 2017-08-21 15:42:36:934 IESession.cpp(191) Entering IESession::ExecuteCommand
T 2017-08-21 15:42:36:934 IECommandExecutor.cpp(122) Entering IECommandExecutor::OnSetCommand
T 2017-08-21 15:42:36:934 command.cc(31) Entering Command::Deserialize
D 2017-08-21 15:42:36:934 command.cc(36) Raw JSON command: { "name" : "performActions", "locator" : { "sessionid" : "6bc4e112-8a2c-4c88-8390-8ddd83f5adec" }, "parameters" : {"actions":[{"type":"key","actions":[{"type":"keyDown","value":"R"},{"type":"keyUp","value":"R"},{"type":"keyDown","value":"D"},{"type":"keyUp","value":"D"},{"type":"keyDown","value":":"},{"type":"keyUp","value":":"},{"type":"keyDown","value":"."},{"type":"keyUp","value":"."},{"type":"keyDown","value":"*"},{"type":"keyUp","value":"*"},{"type":"keyDown","value":" "},{"type":"keyUp","value":" "},{"type":"keyDown","value":"P"},{"type":"keyUp","value":"P"},{"type":"keyDown","value":"N"},{"type":"keyUp","value":"N"},{"type":"keyDown","value":":"},{"type":"keyUp","value":":"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"E"},{"type":"keyUp","value":"E"},{"type":"keyDown","value":"S"},{"type":"keyUp","value":"S"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"-"},{"type":"keyUp","value":"-"},{"type":"keyDown","value":"P"},{"type":"keyUp","value":"P"},{"type":"keyDown","value":"A"},{"type":"keyUp","value":"A"},{"type":"keyDown","value":"\\"},{"type":"keyUp","value":"\\"},{"type":"keyDown","value":"S"},{"type":"keyUp","value":"S"},{"type":"keyDown","value":"T"},{"type":"keyUp","value":"T"},{"type":"keyDown","value":"-"},{"type":"keyUp","value":"-"},{"type":"keyDown","value":"1"},{"type":"keyUp","value":"1"}],"id":"default keyboard"}]} }
T 2017-08-21 15:42:36:935 IECommandExecutor.cpp(133) Entering IECommandExecutor::OnExecCommand
T 2017-08-21 15:42:36:935 IESession.cpp(212) Beginning wait for response length to be not zero
T 2017-08-21 15:42:36:935 IECommandExecutor.cpp(454) Entering IECommandExecutor::DispatchCommand
T 2017-08-21 15:42:36:935 IECommandExecutor.cpp(567) Entering IECommandExecutor::GetCurrentBrowser
T 2017-08-21 15:42:36:935 IECommandExecutor.cpp(573) Entering IECommandExecutor::GetManagedBrowser
T 2017-08-21 15:42:36:935 IECommandExecutor.cpp(523) Entering IECommandExecutor::IsAlertActive
T 2017-08-21 15:42:36:935 Browser.cpp(713) Entering Browser::GetActiveDialogWindowHandle
T 2017-08-21 15:42:36:935 Browser.cpp(206) Entering Browser::GetContentWindowHandle
D 2017-08-21 15:42:36:935 IECommandExecutor.cpp(537) No alert handle is found
T 2017-08-21 15:42:36:935 IECommandExecutor.cpp(567) Entering IECommandExecutor::GetCurrentBrowser
T 2017-08-21 15:42:36:935 IECommandExecutor.cpp(573) Entering IECommandExecutor::GetManagedBrowser
T 2017-08-21 15:42:36:936 InputManager.cpp(80) Entering InputManager::PerformInputSequence
D 2017-08-21 15:42:36:936 InputManager.cpp(101) Mutex acquired for user interaction.
T 2017-08-21 15:42:36:936 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:936 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:936 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:936 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:936 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:936 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:936 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:936 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:936 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:936 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:936 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:936 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:936 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:936 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:937 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:937 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:938 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:938 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:938 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:938 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:938 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:938 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:938 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:938 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:938 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:36:938 InputManager.cpp(798) Entering InputManager::AddKeyboardInput
T 2017-08-21 15:42:36:938 HookProcessor.cpp(94) Entering HookProcessor::Initialize
T 2017-08-21 15:42:36:938 HookProcessor.cpp(104) Entering HookProcessor::Initialize
T 2017-08-21 15:42:36:938 HookProcessor.cpp(167) Entering HookProcessor::InstallWindowsHook
T 2017-08-21 15:42:36:938 Browser.cpp(206) Entering Browser::GetContentWindowHandle
T 2017-08-21 15:42:37:048 HookProcessor.cpp(244) Entering HookProcessor::Dispose
T 2017-08-21 15:42:37:048 HookProcessor.cpp(197) Entering HookProcessor::UninstallWindowsHook
T 2017-08-21 15:42:37:048 HookProcessor.cpp(244) Entering HookProcessor::Dispose
T 2017-08-21 15:42:37:105 response.cc(72) Entering Response::SetSuccessResponse
T 2017-08-21 15:42:37:105 response.cc(78) Entering Response::SetResponse
T 2017-08-21 15:42:37:106 IECommandExecutor.cpp(567) Entering IECommandExecutor::GetCurrentBrowser
T 2017-08-21 15:42:37:106 IECommandExecutor.cpp(573) Entering IECommandExecutor::GetManagedBrowser
T 2017-08-21 15:42:37:106 response.cc(51) Entering Response::Serialize
T 2017-08-21 15:42:37:106 IESession.cpp(221) Found non-zero response length
T 2017-08-21 15:42:37:106 IECommandExecutor.cpp(156) Entering IECommandExecutor::OnGetResponse
T 2017-08-21 15:42:37:106 IECommandExecutor.cpp(285) Entering IECommandExecutor::OnIsSessionValid
D 2017-08-21 15:42:37:106 server.cc(338) Response: {"value":null}
T 2017-08-21 15:42:37:106 server.cc(391) Entering Server::SendResponseToClient
T 2017-08-21 15:42:37:106 response.cc(30) Entering Response::Deserialize
T 2017-08-21 15:42:37:106 server.cc(445) Entering Server::SendHttpOk
Here is the log with 3.4.0 iedriver and german keyboard settings (works like expected):
T 2017-08-21 15:56:00:745 server.cc(174) Entering Server::ProcessRequest
T 2017-08-21 15:56:00:745 server.cc(238) Entering Server::ReadRequestBody
T 2017-08-21 15:56:00:745 server.cc(183) Process request with: URI: /session/ae282941-e9f0-43d3-b95a-817c27b8b992/keys HTTP verb: POST
body: {"value":["RD:.* PN:TEST-PA\\ST-1"]}
T 2017-08-21 15:56:00:745 server.cc(272) Entering Server::DispatchCommand
T 2017-08-21 15:56:00:745 server.cc(579) Entering Server::LookupCommand
D 2017-08-21 15:56:00:745 server.cc(281) Command: POST /session/ae282941-e9f0-43d3-b95a-817c27b8b992/keys {"value":["RD:.* PN:TEST-PA\\ST-1"]}
T 2017-08-21 15:56:00:745 server.cc(395) Entering Server::LookupSession
T 2017-08-21 15:56:00:745 IESession.cpp(191) Entering IESession::ExecuteCommand
T 2017-08-21 15:56:00:745 IECommandExecutor.cpp(125) Entering IECommandExecutor::OnSetCommand
T 2017-08-21 15:56:00:745 command.cc(31) Entering Command::Deserialize
D 2017-08-21 15:56:00:745 command.cc(36) Raw JSON command: { "name" : "sendKeysToActiveElement", "locator" : { "sessionid" : "ae282941-e9f0-43d3-b95a-817c27b8b992" }, "parameters" : {"value":["RD:.* PN:TEST-PA\\ST-1"]} }
T 2017-08-21 15:56:00:745 IESession.cpp(212) Beginning wait for response length to be not zero
T 2017-08-21 15:56:00:745 IECommandExecutor.cpp(136) Entering IECommandExecutor::OnExecCommand
T 2017-08-21 15:56:00:745 IECommandExecutor.cpp(459) Entering IECommandExecutor::DispatchCommand
T 2017-08-21 15:56:00:746 IECommandExecutor.cpp(574) Entering IECommandExecutor::GetCurrentBrowser
T 2017-08-21 15:56:00:746 IECommandExecutor.cpp(580) Entering IECommandExecutor::GetManagedBrowser
T 2017-08-21 15:56:00:746 IECommandExecutor.cpp(530) Entering IECommandExecutor::IsAlertActive
T 2017-08-21 15:56:00:746 Browser.cpp(713) Entering Browser::GetActiveDialogWindowHandle
T 2017-08-21 15:56:00:746 Browser.cpp(206) Entering Browser::GetContentWindowHandle
D 2017-08-21 15:56:00:746 IECommandExecutor.cpp(544) No alert handle is found
T 2017-08-21 15:56:00:746 IECommandExecutor.cpp(574) Entering IECommandExecutor::GetCurrentBrowser
T 2017-08-21 15:56:00:746 IECommandExecutor.cpp(580) Entering IECommandExecutor::GetManagedBrowser
T 2017-08-21 15:56:00:746 InputManager.cpp(73) Entering InputManager::PerformInputSequence
D 2017-08-21 15:56:00:746 InputManager.cpp(94) Mutex acquired for user interaction.
T 2017-08-21 15:56:00:746 InputManager.cpp(540) Entering InputManager::SendKeystrokes
T 2017-08-21 15:56:00:747 Browser.cpp(206) Entering Browser::GetContentWindowHandle
D 2017-08-21 15:56:00:747 InputManager.cpp(567) Using SendMessage method for sending keys
T 2017-08-21 15:56:00:747 HookProcessor.cpp(93) Entering HookProcessor::Initialize
T 2017-08-21 15:56:00:747 HookProcessor.cpp(103) Entering HookProcessor::Initialize
T 2017-08-21 15:56:00:747 HookProcessor.cpp(166) Entering HookProcessor::InstallWindowsHook
T 2017-08-21 15:56:02:427 HookProcessor.cpp(243) Entering HookProcessor::Dispose
T 2017-08-21 15:56:02:427 HookProcessor.cpp(196) Entering HookProcessor::UninstallWindowsHook
T 2017-08-21 15:56:02:427 HookProcessor.cpp(243) Entering HookProcessor::Dispose
T 2017-08-21 15:56:02:427 HookProcessor.cpp(243) Entering HookProcessor::Dispose
T 2017-08-21 15:56:02:427 response.cc(63) Entering Response::SetSuccessResponse
T 2017-08-21 15:56:02:427 response.cc(69) Entering Response::SetResponse
T 2017-08-21 15:56:02:427 IECommandExecutor.cpp(574) Entering IECommandExecutor::GetCurrentBrowser
T 2017-08-21 15:56:02:427 IECommandExecutor.cpp(580) Entering IECommandExecutor::GetManagedBrowser
T 2017-08-21 15:56:02:427 response.cc(51) Entering Response::Serialize
T 2017-08-21 15:56:02:427 IESession.cpp(221) Found non-zero response length
T 2017-08-21 15:56:02:428 IECommandExecutor.cpp(159) Entering IECommandExecutor::OnGetResponse
T 2017-08-21 15:56:02:428 IECommandExecutor.cpp(288) Entering IECommandExecutor::OnIsSessionValid
D 2017-08-21 15:56:02:428 server.cc(355) Response: {"sessionId":"ae282941-e9f0-43d3-b95a-817c27b8b992","status":0,"value":null}
T 2017-08-21 15:56:02:428 server.cc(408) Entering Server::SendResponseToClient
T 2017-08-21 15:56:02:428 response.cc(36) Entering Response::Deserialize
T 2017-08-21 15:56:02:428 server.cc(462) Entering Server::SendHttpOk
could be the same problem than in #4518
Duplicate of #4462
The problem is not fixed with selenium 3.5.3
Please provide a concise reproducible test case and describe what results you are seeing and what results you expect.
See CONTRIBUTING.md
Here is a reproducible test case. Please make shure you use german keyboard layout (https://support.microsoft.com/en-us/help/17424/windows-change-keyboard-layout).
import java.io.File;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.ie.InternetExplorerDriverService;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
public class Test4523 {
private static InternetExplorerDriverService SERVICE;
private WebDriver fDriver;
@BeforeClass
public static void before() throws IOException {
// if you use 3.5.1 ie driver, wrong message is send under german keyboard layout (can be configured under windows)
SERVICE = new InternetExplorerDriverService.Builder().usingDriverExecutable(new File("path to 3.5.1 IEDriverServer.exe")).usingAnyFreePort().build(); //$NON-NLS-1$
// if you use 3.4 ie driver, everythings works like expected under german keyboard layout (can be configured under windows)
// SERVICE = new InternetExplorerDriverService.Builder().usingDriverExecutable(new File("path to 3.4 IEDriverServer.exe")).usingAnyFreePort().build(); //$NON-NLS-1$
SERVICE.start();
}
@AfterClass
public static void after() {
SERVICE.stop();
}
@Before
public void startBrowser() {
DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();
this.fDriver = new RemoteWebDriver(SERVICE.getUrl(), capabilities);
this.fDriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
}
@After
public void quitBrowser() {
this.fDriver.quit();
}
@Test
public void test() {
this.fDriver.get("https://google.com"); //$NON-NLS-1$
WebElement element = this.fDriver.findElement(By.name("q")); //$NON-NLS-1$
String text = "ABC \\S XYZ"; //$NON-NLS-1$
element.sendKeys(text);
new WebDriverWait(this.fDriver, 30).until(ExpectedConditions.textToBePresentInElementValue(element, text));
this.fDriver.close();
}
}
I'm not sure if we want to support \\S-like notation. I've just figured out that geckodriver does not support it too. Universal unicode notation ("ABC \u00DF XYZ") is supported by all drivers and it's independent on the keyboard layout.
There's no guarantee that the webdriver implementation will go through the OS provided mechanisms for sending keyboard events, or perform OS-specific mapping of escape characters, so relying on "\S" being mapped to ß is a risky assumption. If you want that character typed, please use the unicode escape sequence. If your source file is stored as UTF-8, you should be able to use the character in your strings too, without needing to escape it.
Relevant bits of the spec:
https://w3c.github.io/webdriver/webdriver-spec.html#dfn-typeable
https://w3c.github.io/webdriver/webdriver-spec.html#dfn-dispatch-actions-for-a-string ("Otherwise" branch)
geckodriver supports it, we run the tests every night with this construct against geckodriver!
You're lucky. For me (Windows 7 Russian with added German keyboard layout set as default) geckodriver (0.18) does not work. But unicode works always, no matter what keyboard layout is choosen. That's why it's the way to go.
To be clear: I DO NOT want to map \S to ß!!! This is the error IE Driver makes. I want to print \S and what happens is that ßS is printed instead. Which is wrong. If i change my keyboard settings to US, everythings works.
Please tell me the unicode sequence i have to use for \
I've tried to use the unicode sequence for \ (\U005C -> http://www.fileformat.info/info/unicode/char/005c/index.htm) but java does not compile this:
@Test
public void test() {
this.fDriver.get("https://google.com"); //$NON-NLS-1$
WebElement element = this.fDriver.findElement(By.name("q")); //$NON-NLS-1$
// String text = "\\"; //$NON-NLS-1$
String text = "\u005C"; //$NON-NLS-1$
element.sendKeys(text);
new WebDriverWait(this.fDriver, 30).until(ExpectedConditions.textToBePresentInElementValue(element, "\\"));
this.fDriver.close();
}
Maybe the example was my mistake, i'm only talking about \ That is converted into ß in latest ie driver. On german keyboard this is on the same key (please see attached picture). I think the problem is that ie driver sends the wrong keyboard combination.

Oh! Sorry, we misunderstood your intention :)
Yes, it seems to be a legit but in IE driver, it types "ßS" instead of "\S"
Attaching debug level log that shows what's happening inside IE driver.
iedriver.log.txt
I think @jimevans should look at this issue.
I think this might be related to the issue I have with swedish keyboard. Any character that requires the AltGr key fails in version 3.5.1 but works in 3.4.0.
For example: SendKeys("@") will simply put a "2" into the browser. 2 is the character that Swedish keyboards produces for the same key as @ without AltGR. (AltGr is the same as CTRL+ALT).
The same code works just fine with US keyboard set in windows.
I have compiled the source from git and that version fails in the same way as well. I did a possibly very dirty fix in InputManager.cpp -> AddKeyboardInput that fixes my problem. I also tested the issue described by @mseele by adding a German keyboard in windows and that issue was solved as well by the same fix. If anyone wants to look at the change I did in InputManager.cpp you can find it here:
https://github.com/emilnilsson/selenium/commit/3af1cd29e596f9a8744efc585a9ca447388f6588#diff-0df19247e3c1534cab480fec1085dc6e
I have the same issue with Hungarian keyboard and for example @ sign, which is AltGr + V at us. Is this planned to be fixed soon? Thank you.
hello i have the same problem with IEDriver hight to 3.5 relase
all the characters using altgr are converted
example : for chart "#" result is "à"
for "@" result "ò"
i tried all solution on git but not work
Any progress on this? I cannot test anything on IE involving typing...
Hello,
I have the same issue, non ENG keybord setting in Windows produces wrong character for "@" when using send_keys() to IE. As @emilnilsson, im also using SWE keyboard which produces a 2 rather than @.
Having that said, ive tried using the latest IEDriver.exe directly with the python 2.7 selenium,
without a RC setup. (http://selenium-python.readthedocs.io/) which seems to have this exact same issue.
@JouperCoding I have solved this by typing @ separately using following code:
_driver.FindElement(By.Id("EmailAddress")).SendKeys(Keys.Control + Keys.Alt + "2");
I have the same issue with Czech keyboard - instead of "@" sign it types in "v" (in the czech keyboard, AltGr+V is used to type "@" sign). Using IEDriverServer v3.8.1, 32bit. For FF and Chrome drivers everything works fine.
@lucietriskova try element.SendKeys(Keys.Control + Keys.Alt + "v");.
@azzimuth thanks for sharing your workaround, however, for us it cannot be applied as we need a locale-independent solution. With this solution you're hard-coding the keyboard layout to your tests which is not acceptable for most cases in my opinion.
Hopefully someone will have some time for the fix soon.
emilnilsson's fix works for me.
Unfortunately we are using different keyboards in our team and therefore we
need some language-independent solution. But thanks :)
Dne 28. 1. 2018 10:28 PM napsal uživatel "Zoltán Tamási" <
[email protected]>:
@azzimuth https://github.com/azzimuth thanks for sharing your
workaround, however, for us it cannot be applied as we need a
locale-independent solution. With this solution you're hard-coding the
keyboard layout to your tests which is not acceptable for most cases in my
opinion.Hopefully someone will have some time for the fix soon.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SeleniumHQ/selenium/issues/4523#issuecomment-361097596,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQBoS6T8K42BROPS2YXstyUZmQIJV2URks5tPOaFgaJpZM4O9ZOv
.
This is fixed with 6d4b920.
Is that already included in some release of IE driver?
@azzimuth You can get it from https://github.com/SeleniumHQ/selenium/tree/master/cpp/prebuilt.
I feel this issue is not limited to _Internet Explorer_ only. Selenium users using _GeckoDriver_ are also facing similar error as reported on StackOverflow recently as follows :
Exception in thread "main" org.openqa.selenium.ElementNotInteractableException: Element <p class="btn waves-effect waves-light btn-upload"> is not reachable by keyboard
Source : SELENIUM:- Element is not reachable by keyboard (JAVA)
'Element input type="file" is not reachable by keyboard'
Source : Protractor - Upload file Error “Element
selenium.common.exceptions.ElementNotInteractableException: Message: Element is not reachable by keyboard
Source : Selenium/Instagram : send_keys() not working anymore
@Debanjan-B This particular issue _is_ specifically related to IE only. There may be separate issues with other browsers. This one is fixed.
@Debanjan-B SendKeys worked in this case but some keys were typed wrong.
I am having the exact problem referenced in closed ticket https://github.com/SeleniumHQ/selenium/issues/5051
Using Chrome driver with a C# project on a UK keyboard.
@strich If you’re having the issue using the driver for Chrome, then your issue is not the same as this one. This issue was specific only to Internet Explorer, and was fixed. Please bear in mind that the Selenium project does not create nor maintain chromedriver; rather, it’s maintained by the Chromium project.
Are you sure it was fixed?
I'm using InternetExplorerDriver server (32-bit) 3.9.0.0 with Selenium 3.14 and jre8.
When i try to input @[]{}()\" ' / it outputs à()'=()" ' /
I had to use clipboard as a workaround for any string containing those tokens.
@devolution2409 Quite sure. It was fixed in 3.9.0.2, as clearly noted in the IE driver CHANGELOG. This means it was publicly available in 3.10.0.0.
Oh, i have older version of driver. I should find the newest one. Thanks sir
Most helpful comment
@JouperCoding I have solved this by typing
@separately using following code:_driver.FindElement(By.Id("EmailAddress")).SendKeys(Keys.Control + Keys.Alt + "2");