saucelabs/java-client

Name: java-client

Owner: Sauce Labs

Description: Java language binding for writing Appium Tests, conforms to Mobile JSON Wire Protocol

Created: 2015-04-16 11:21:36.0

Updated: 2017-10-12 14:09:38.0

Pushed: 2015-04-16 18:02:37.0

Homepage: null

Size: 27756

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

java-client

Java language binding for writing Appium Tests, conforms to Mobile JSON Wire Protocol

Depends upon the Selenium Java client library, available here

Download the jar from Maven or add the following to pom.xml:

endency>
roupId>io.appium</groupId>
rtifactId>java-client</artifactId>
ersion>2.2.0</version>
pendency>

It currently depends on selenium-java 2.43.1. If it is necessary to use another version of Selenium then you can configure pom.xml as follows:

endency>
roupId>io.appium</groupId>
rtifactId>java-client</artifactId>
ersion>2.2.0</version>
xclusions>
<exclusion>
  <groupId>org.seleniumhq.selenium</groupId>
  <artifactId>selenium-java</artifactId>
</exclusion>
exclusions>
pendency>

endency>
roupId>org.seleniumhq.selenium</groupId>
rtifactId>selenium-java</artifactId>
ersion>${selenium.version.you.require}</version>
pendency>

Javadocs: http://appium.github.io/java-client/

Structure

There is an abstract AppiumDriver class which inherits from the Selenium Java Client. The AppiumDriver class contains all methods shared by iOS and Android. IOSDriver and AndroidDriver both extend AppiumDriver and provide more methods, and specific implementations for some methods.

Added functions

More can be found in the docs, but here's a quick list of features which this project has added to the usual selenium binding.

Locators:

Changelog

2.2.0

2.1.0

2.0.0

1.7.0

1.6.2

1.6.1

1.6.0

1.5.0

1.4.0

1.3.0

1.2.1

1.2.0

1.1.0

1.0.2

Running tests

Run a test using

mvn -Dtest=io.appium.java_client.MobileDriverAndroidTest clean test


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.