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

Method IsSimpleEdit

cpp/iedriver/Alert.cpp:575–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575bool Alert::IsSimpleEdit(HWND edit_handle) {
576 std::vector<wchar_t> child_window_class(100);
577 ::GetClassName(edit_handle, &child_window_class[0], 100);
578
579 if (wcscmp(&child_window_class[0], L"Edit") == 0) {
580 long window_long = ::GetWindowLong(edit_handle, GWL_STYLE);
581 bool is_read_only = (window_long & ES_READONLY) == ES_READONLY;
582 bool is_password = (window_long & ES_PASSWORD) == ES_PASSWORD;
583 return !is_read_only && !is_password;
584 }
585 return false;
586}
587
588bool Alert::IsPasswordEdit(HWND edit_handle) {
589 std::vector<wchar_t> child_window_class(100);

Callers

nothing calls this directly

Calls 1

GetClassNameClass · 0.85

Tested by

no test coverage detected