1/*2 * Licensed under the Apache License, Version 2.0 (the "License");3 * you may not use this file except in compliance with the License.4 * See the NOTICE file distributed with this work for additional5 * information regarding copyright ownership.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.15 */16package com.mengge;17import org.openqa.selenium.By;18import org.openqa.selenium.ContextAware;19import org.openqa.selenium.Rotatable;20import org.openqa.selenium.WebDriver;21import org.openqa.selenium.WebElement;22import org.openqa.selenium.html5.LocationContext;23import org.openqa.selenium.internal.FindsByClassName;24import org.openqa.selenium.internal.FindsByCssSelector;25import org.openqa.selenium.internal.FindsById;26import org.openqa.selenium.internal.FindsByLinkText;27import org.openqa.selenium.internal.FindsByName;28import org.openqa.selenium.internal.FindsByTagName;29import org.openqa.selenium.internal.FindsByXPath;30import org.openqa.selenium.remote.Response;31import java.util.List;32import java.util.Map;33public interface MobileDriver<T extends WebElement> extends WebDriver, PerformsTouchActions, ContextAware, Rotatable,34 FindsByAccessibilityId<T>, LocationContext, DeviceActionShortcuts, TouchShortcuts,35 InteractsWithFiles, InteractsWithApps, HasAppStrings, FindsByClassName, FindsByCssSelector, FindsById,36 FindsByLinkText, FindsByName, FindsByTagName, FindsByXPath {37 Response execute(String driverCommand, Map<String, ?> parameters);38 List<T> findElements(By by);39 T findElement(By by);40 T findElementByClassName(String className);41 List<T> findElementsByClassName(String className);42 T findElementByCssSelector(String cssSelector);43 List<T> findElementsByCssSelector(String cssSelector);44 T findElementById(String id);45 List<T> findElementsById(String id);46 T findElementByLinkText(String linkText);47 List<T> findElementsByLinkText(String linkText);48 T findElementByPartialLinkText(String partialLinkText);49 List<T> findElementsByPartialLinkText(String partialLinkText);50 T findElementByName(String name);51 List<T> findElementsByName(String name);52 T findElementByTagName(String tagName);53 List<T> findElementsByTagName(String tagName);54 T findElementByXPath(String xPath);55 List<T> findElementsByXPath(String xPath);56}...