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

Function wait

cpp/webdriver-interactions/interaction_utils.cpp:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#include <ctime>
26
27void wait(long millis)
28{
29 clock_t end = clock() + millis;
30 do {
31 MSG msg;
32 if (PeekMessage( &msg, NULL, 0, 0, PM_REMOVE)) {
33 TranslateMessage(&msg);
34 DispatchMessage(&msg);
35 }
36 Sleep(0);
37 } while (clock() < end);
38}
39
40void waitWithoutMsgPump(long millis)
41{

Callers 8

FirefoxClass · 0.85
WebDriverClass · 0.85
sendModifierKeyDownFunction · 0.85
sendModifierKeyUpFunction · 0.85
backgroundKeyDownFunction · 0.85
backgroundKeyUpFunction · 0.85
mouseMoveToFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected