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

Method Initialize

cpp/iedriver/InputManager.cpp:81–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void InputManager::Initialize(InputManagerSettings settings) {
82 LOG(TRACE) << "Entering InputManager::Initialize";
83 this->element_map_ = settings.element_repository;
84 this->scroll_behavior_ = settings.scroll_behavior;
85 this->use_native_events_ = settings.use_native_events;
86 this->use_persistent_hover_ = settings.enable_persistent_hover;
87 this->require_window_focus_ = settings.require_window_focus;
88 if (settings.use_native_events) {
89 if (settings.require_window_focus) {
90 this->action_simulator_ = new SendInputActionSimulator();
91 } else {
92 this->action_simulator_ = new SendMessageActionSimulator();
93 }
94 } else {
95 this->action_simulator_ = new JavaScriptActionSimulator();
96 }
97 this->SetupKeyDescriptions();
98}
99
100int InputManager::PerformInputSequence(BrowserHandle browser_wrapper,
101 const Json::Value& sequences,

Callers

nothing calls this directly

Calls 2

SetupKeyDescriptionsMethod · 0.95
LOGClass · 0.50

Tested by

no test coverage detected