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

Method CheckDialogType

cpp/iedriver/Browser.cpp:896–910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894}
895
896void Browser::CheckDialogType(HWND dialog_window_handle) {
897 LOG(TRACE) << "Entering Browser::CheckDialogType";
898
899 std::vector<char> window_class_name(34);
900 if (GetClassNameA(dialog_window_handle, &window_class_name[0], 34)) {
901 if (strcmp(HTML_DIALOG_WINDOW_CLASS,
902 &window_class_name[0]) == 0) {
903 HWND content_window_handle = this->FindContentWindowHandle(dialog_window_handle);
904 ::PostMessage(this->executor_handle(),
905 WD_NEW_HTML_DIALOG,
906 NULL,
907 reinterpret_cast<LPARAM>(content_window_handle));
908 }
909 }
910}
911
912} // namespace webdriver

Callers 1

Calls 3

executor_handleMethod · 0.80
LOGClass · 0.50

Tested by

no test coverage detected