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

Method SetPassword

cpp/iedriver/Alert.cpp:137–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137int Alert::SetPassword(const std::string& password) {
138 LOG(TRACE) << "Entering Alert::SetPassword";
139 // If this isn't a security alert, return an error.
140 if (!this->is_security_alert_) {
141 return EUNEXPECTEDALERTOPEN;
142 }
143 TextBoxFindInfo text_box_find_info;
144 text_box_find_info.textbox_handle = NULL;
145 text_box_find_info.match_proc = &Alert::IsPasswordEdit;
146 return this->SendKeysInternal(password, &text_box_find_info);
147}
148
149int Alert::SendKeysInternal(const std::string& keys,
150 TextBoxFindInfo* text_box_find_info) {

Callers 1

ExecuteInternalMethod · 0.80

Calls 2

SendKeysInternalMethod · 0.95
LOGClass · 0.50

Tested by

no test coverage detected