We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd57d5b commit 05da83dCopy full SHA for 05da83d
cpp/webdriver-interactions/interactions.cpp
@@ -358,7 +358,11 @@ static HKL attachInputToIEThread(HWND directInputTo)
358
hook = SetWindowsHookEx(WH_GETMESSAGE, (HOOKPROC) &GetMessageProc,
359
moduleHandle, ieWinThreadId);
360
361
- // Attach to the IE thread so we can send keys to it.
+ if (hook == NULL) {
362
+ LOGERR(WARN) << "Unable to set Windows hook. Individual keystrokes will be very slow";
363
+ }
364
+
365
+ // Attach to the IE thread so we can send keys to it.
366
if (ieWinThreadId != currThreadId) {
367
AttachThreadInput(currThreadId, ieWinThreadId, true);
368
}
0 commit comments