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

Method OnBrowserQuit

cpp/iedriver/IECommandExecutor.cpp:533–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533LRESULT IECommandExecutor::OnBrowserQuit(UINT uMsg,
534 WPARAM wParam,
535 LPARAM lParam,
536 BOOL& bHandled) {
537 LOG(TRACE) << "Entering IECommandExecutor::OnBrowserQuit";
538
539 LPCSTR str = reinterpret_cast<LPCSTR>(lParam);
540 std::string browser_id(str);
541 delete[] str;
542 LOG(TRACE) << "Removing browser with ID " << browser_id;
543 BrowserMap::iterator found_iterator =
544 this->managed_browsers_.find(browser_id);
545
546 if (found_iterator != this->managed_browsers_.end()) {
547 this->managed_browsers_.erase(browser_id);
548 if (this->managed_browsers_.size() == 0) {
549 this->current_browser_id_ = "";
550 }
551 LOG(TRACE) << "Successfully removed browser with ID " << browser_id;
552 } else {
553 LOG(WARN) << "Unable to find browser to quit with ID " << browser_id;
554 }
555
556 return 0;
557}
558
559LRESULT IECommandExecutor::OnBeforeBrowserReattach(UINT uMsg,
560 WPARAM wParam,

Callers

nothing calls this directly

Calls 4

findMethod · 0.80
endMethod · 0.80
LOGClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected