| 894 | } |
| 895 | |
| 896 | void 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 |
no test coverage detected