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

Method GetElementFindMethod

cpp/iedriver/IECommandExecutor.cpp:1647–1660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1645}
1646
1647int IECommandExecutor::GetElementFindMethod(const std::string& mechanism,
1648 std::wstring* translation) const {
1649 LOG(TRACE) << "Entering IECommandExecutor::GetElementFindMethod";
1650
1651 ElementFindMethodMap::const_iterator found_iterator =
1652 this->element_find_methods_.find(mechanism);
1653 if (found_iterator == this->element_find_methods_.end()) {
1654 LOG(WARN) << "Unable to determine find method " << mechanism;
1655 return EUNHANDLEDERROR;
1656 }
1657
1658 *translation = found_iterator->second;
1659 return WD_SUCCESS;
1660}
1661
1662int IECommandExecutor::LocateElement(const ElementHandle parent_wrapper,
1663 const std::string& mechanism,

Callers 2

LocateElementMethod · 0.95
LocateElementsMethod · 0.95

Calls 3

findMethod · 0.80
endMethod · 0.80
LOGClass · 0.50

Tested by

no test coverage detected