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

Method OnNotifyElementTransferred

cpp/iedriver/AsyncScriptExecutor.cpp:260–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260LRESULT AsyncScriptExecutor::OnNotifyElementTransferred(UINT uMsg,
261 WPARAM wParam,
262 LPARAM lParam,
263 BOOL& bHandled) {
264 LOG(TRACE) << "Entering AsyncScriptExecutor::OnNotifyElementTransferred";
265 RemappedElementInfo* info = reinterpret_cast<RemappedElementInfo*>(lParam);
266 std::string element_id = info->element_id;
267 std::string original_element_id = info->original_element_id;
268 delete info;
269 this->ReplaceTransferredElementResult(original_element_id, element_id, &this->script_result_);
270 std::vector<std::string>::const_iterator item = std::find(this->element_id_list_.begin(),
271 this->element_id_list_.end(),
272 original_element_id);
273 this->element_id_list_.erase(item);
274 if (this->element_id_list_.size() == 0) {
275 this->is_execution_completed_ = true;
276 }
277 return WD_SUCCESS;
278}
279void AsyncScriptExecutor::ReplaceTransferredElementResult(std::string original_element_id,
280 std::string element_id,
281 Json::Value* result) {

Callers

nothing calls this directly

Calls 4

endMethod · 0.80
LOGClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected