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

Method VariantIsElement

cpp/iedriver/VariantUtilities.cpp:70–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70bool VariantUtilities::VariantIsElement(VARIANT value) {
71 if (value.vt == VT_DISPATCH) {
72 CComPtr<IHTMLElement> is_element;
73 value.pdispVal->QueryInterface<IHTMLElement>(&is_element);
74 if (is_element) {
75 return true;
76 }
77 }
78 return false;
79}
80
81bool VariantUtilities::VariantIsArray(VARIANT value) {
82 if (value.vt != VT_DISPATCH) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected