| 1682 | } |
| 1683 | |
| 1684 | int 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 | |
| 1706 | void IECommandExecutor::PopulateElementFinderMethods(void) { |
| 1707 | LOG(TRACE) << "Entering IECommandExecutor::PopulateElementFinderMethods"; |
no test coverage detected