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

Method InitiateBrowserReattach

cpp/iedriver/Browser.cpp:211–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void Browser::InitiateBrowserReattach() {
212 LOG(TRACE) << "Entering Browser::InitiateBrowserReattach";
213 LOG(DEBUG) << "Requesting browser reattach";
214 this->known_process_ids_.clear();
215 WindowUtilities::GetProcessesByName(L"iexplore.exe",
216 &this->known_process_ids_);
217 this->set_is_awaiting_new_process(true);
218 ::SendMessage(this->executor_handle(), WD_BEFORE_BROWSER_REATTACH, NULL, NULL);
219}
220
221void Browser::ReattachBrowser(IWebBrowser2* browser) {
222 LOG(TRACE) << "Entering Browser::ReattachBrowser";

Callers 4

NewProcessMethod · 0.95
OnBrowserNewWindowMethod · 0.80
ExecuteInternalMethod · 0.80
ExecuteInternalMethod · 0.80

Calls 4

executor_handleMethod · 0.80
clearMethod · 0.65
LOGClass · 0.50

Tested by

no test coverage detected