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

Method SetUserName

cpp/iedriver/Alert.cpp:128–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128int Alert::SetUserName(const std::string& username) {
129 LOG(TRACE) << "Entering Alert::SetUserName";
130 // If this isn't a security alert, return an error.
131 if (!this->is_security_alert_) {
132 return EUNEXPECTEDALERTOPEN;
133 }
134 return this->SendKeys(username);
135}
136
137int Alert::SetPassword(const std::string& password) {
138 LOG(TRACE) << "Entering Alert::SetPassword";

Callers 1

ExecuteInternalMethod · 0.80

Calls 2

SendKeysMethod · 0.95
LOGClass · 0.50

Tested by

no test coverage detected