All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.appium.java_client.MobileDriver Maven / Gradle / Ivy

There is a newer version: 9.3.0
Show newest version
/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.appium.java_client;

import org.openqa.selenium.By;
import org.openqa.selenium.ContextAware;
import org.openqa.selenium.Rotatable;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.html5.LocationContext;
import org.openqa.selenium.internal.FindsByClassName;
import org.openqa.selenium.internal.FindsByCssSelector;
import org.openqa.selenium.internal.FindsById;
import org.openqa.selenium.internal.FindsByLinkText;
import org.openqa.selenium.internal.FindsByName;
import org.openqa.selenium.internal.FindsByTagName;
import org.openqa.selenium.internal.FindsByXPath;

import java.util.List;

public interface MobileDriver extends WebDriver, PerformsTouchActions, ContextAware, Rotatable,
    FindsByAccessibilityId, LocationContext, HidesKeyboard, HasDeviceTime,
    InteractsWithFiles, InteractsWithApps, HasAppStrings, FindsByClassName, FindsByCssSelector, FindsById,
        FindsByLinkText, FindsByName, FindsByTagName, FindsByXPath, FindsByFluentSelector, ExecutesMethod,
        HasSessionDetails {

    List findElements(By by);

    T findElement(By by);

    T findElementByClassName(String className);

    List findElementsByClassName(String className);

    T findElementByCssSelector(String cssSelector);

    List findElementsByCssSelector(String cssSelector);

    T findElementById(String id);

    List findElementsById(String id);

    T findElementByLinkText(String linkText);

    List findElementsByLinkText(String linkText);

    T findElementByPartialLinkText(String partialLinkText);

    List findElementsByPartialLinkText(String partialLinkText);

    T findElementByName(String name);

    List findElementsByName(String name);

    T findElementByTagName(String tagName);

    List findElementsByTagName(String tagName);

    T findElementByXPath(String xPath);

    List findElementsByXPath(String xPath);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy