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

Method Pause

cpp/iedriver/InputManager.cpp:635–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633}
634
635int InputManager::Pause(BrowserHandle browser_wrapper,
636 const Json::Value& pause_action) {
637 int status_code = 0;
638 int duration = 0;
639 if (pause_action.isMember("duration")) {
640 duration = pause_action["duration"].asInt();
641 }
642 if (duration > 0) {
643 this->AddPauseInput(browser_wrapper->GetContentWindowHandle(), duration);
644 }
645 return status_code;
646}
647
648void InputManager::AddPauseInput(HWND window_handle, int duration) {
649 // Leverage the INPUT_HARDWARE type.

Callers 1

PerformInputSequenceMethod · 0.95

Calls 2

AddPauseInputMethod · 0.95

Tested by

no test coverage detected