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

Method LocateElements

cpp/iedriver/IECommandExecutor.cpp:1684–1704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1682}
1683
1684int IECommandExecutor::LocateElements(const ElementHandle parent_wrapper,
1685 const std::string& mechanism,
1686 const std::string& criteria,
1687 Json::Value* found_elements) const {
1688 LOG(TRACE) << "Entering IECommandExecutor::LocateElements";
1689
1690 std::wstring mechanism_translation = L"";
1691 int status_code = this->GetElementFindMethod(mechanism,
1692 &mechanism_translation);
1693 if (status_code != WD_SUCCESS) {
1694 LOG(WARN) << "Unable to determine mechanism translation for " << mechanism;
1695 return status_code;
1696 }
1697
1698 std::wstring wide_criteria = StringUtilities::ToWString(criteria);
1699 return this->element_finder()->FindElements(*this,
1700 parent_wrapper,
1701 mechanism_translation,
1702 wide_criteria,
1703 found_elements);
1704}
1705
1706void IECommandExecutor::PopulateElementFinderMethods(void) {
1707 LOG(TRACE) << "Entering IECommandExecutor::PopulateElementFinderMethods";

Callers 2

ExecuteInternalMethod · 0.80
ExecuteInternalMethod · 0.80

Calls 4

GetElementFindMethodMethod · 0.95
element_finderMethod · 0.95
LOGClass · 0.50
FindElementsMethod · 0.45

Tested by

no test coverage detected