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

Method VariantIsElementCollection

cpp/iedriver/VariantUtilities.cpp:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59bool VariantUtilities::VariantIsElementCollection(VARIANT value) {
60 if (value.vt == VT_DISPATCH) {
61 CComPtr<IHTMLElementCollection> is_collection;
62 value.pdispVal->QueryInterface<IHTMLElementCollection>(&is_collection);
63 if (is_collection) {
64 return true;
65 }
66 }
67 return false;
68}
69
70bool VariantUtilities::VariantIsElement(VARIANT value) {
71 if (value.vt == VT_DISPATCH) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected