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

Method OnGetRequiredElementList

cpp/iedriver/AsyncScriptExecutor.cpp:140–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140LRESULT AsyncScriptExecutor::OnGetRequiredElementList(UINT uMsg,
141 WPARAM wParam,
142 LPARAM lParam,
143 BOOL& bHandled) {
144 LOG(TRACE) << "Entering AsyncScriptExecutor::OnGetRequiredElementList";
145 Json::Value element_id_list(Json::arrayValue);
146 std::vector<std::string>::const_iterator it = this->element_id_list_.begin();
147 for (; it != this->element_id_list_.end(); ++it) {
148 element_id_list.append(*it);
149 }
150 Json::StreamWriterBuilder writer;
151 std::string serialized_element_list = Json::writeString(writer, element_id_list);
152 std::string* return_string = reinterpret_cast<std::string*>(lParam);
153 *return_string = serialized_element_list.c_str();
154 return 0;
155}
156
157LRESULT AsyncScriptExecutor::OnIsExecutionReady(UINT uMsg,
158 WPARAM wParam,

Callers

nothing calls this directly

Calls 3

endMethod · 0.80
LOGClass · 0.50
appendMethod · 0.45

Tested by

no test coverage detected