MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / Wait

Method Wait

cpp/iedriver/WindowUtilities.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void WindowUtilities::Wait(long wait_in_milliseconds) {
35 clock_t end = clock() + wait_in_milliseconds;
36 do {
37 MSG msg;
38 if (::PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
39 ::TranslateMessage(&msg);
40 ::DispatchMessage(&msg);
41 }
42 ::Sleep(0);
43 } while (clock() < end);
44}
45
46void WindowUtilities::WaitWithoutMsgPump(long wait_in_milliseconds) {
47 ::Sleep(wait_in_milliseconds);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected