// Licensed to the Software Freedom Conservancy (SFC) under one1// or more contributor license agreements. See the NOTICE file2// distributed with this work for additional information3// regarding copyright ownership. The SFC licenses this file4// to you under the Apache License, Version 2.0 (the "License");5// you may not use this file except in compliance with the License.6// You may obtain a copy of the License at7//8// http://www.apache.org/licenses/LICENSE-2.09//10// Unless required by applicable law or agreed to in writing, software11// distributed under the License is distributed on an "AS IS" BASIS,12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13// See the License for the specific language governing permissions and14// limitations under the License.1516#ifndef WEBDRIVER_IE_ELEMENTFINDER_H_17#define WEBDRIVER_IE_ELEMENTFINDER_H_1819#include <string>20#include <vector>2122#include "CustomTypes.h"2324namespace Json {25class Value;26}2728namespace webdriver {2930// Forward declaration of classes.31class IECommandExecutor;3233class ElementFinder {34public:35ElementFinder();36virtual ~ElementFinder(void);37virtual int FindElement(const IECommandExecutor& executor,38ElementHandle parent_wrapper,39const std::wstring& mechanism,40const std::wstring& criteria,41Json::Value* found_element);42virtual int FindElements(const IECommandExecutor& executor,43ElementHandle parent_wrapper,44const std::wstring& mechanism,45const std::wstring& criteria,46Json::Value* found_elements);4748private:49int FindElementUsingSizzle(const IECommandExecutor& executor,50const ElementHandle parent_wrapper,51const std::wstring& criteria,52Json::Value* found_element);53int FindElementsUsingSizzle(const IECommandExecutor& executor,54const ElementHandle parent_wrapper,55const std::wstring& criteria,56Json::Value* found_elements);57bool HasNativeCssSelectorEngine(const IECommandExecutor& executor);58};5960} // namespace webdriver6162#endif // WEBDRIVER_IE_ELEMENTFINDER_H_636465