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

Method OnHandleUnexpectedAlerts

cpp/iedriver/IECommandExecutor.cpp:815–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813}
814
815LRESULT IECommandExecutor::OnHandleUnexpectedAlerts(UINT uMsg,
816 WPARAM wParam,
817 LPARAM lParam,
818 BOOL& bHandled) {
819 LOG(TRACE) << "Entering IECommandExecutor::OnHandleUnexpectedAlerts";
820 BrowserMap::const_iterator it = this->managed_browsers_.begin();
821 for (; it != this->managed_browsers_.end(); ++it) {
822 HWND alert_handle = it->second->GetActiveDialogWindowHandle();
823 if (alert_handle != NULL) {
824 std::string alert_text;
825 this->HandleUnexpectedAlert(it->second, alert_handle, true, &alert_text);
826 }
827 }
828 return 0;
829}
830
831LRESULT IECommandExecutor::OnTransferManagedElement(UINT uMsg,
832 WPARAM wParam,

Callers

nothing calls this directly

Calls 4

HandleUnexpectedAlertMethod · 0.95
endMethod · 0.80
LOGClass · 0.50

Tested by

no test coverage detected