build/mobile/robocop/Element.java.in
author Gregory Szorc <gps@mozilla.com>
Wed, 28 Jan 2015 13:37:00 -0800
branchGECKO160_2012091123_RELBRANCH
changeset 243304 de801bc4b960fcd6787cb12a0c38d8b5153e5630
parent 98690 d3c66ed8fea9c8eabe7a55db954cd80f1fa667b6
child 165585 c0e6e76aafedbdc3852fc3fc114b8f57b7ddf851
permissions -rw-r--r--
Close old release branch GECKO160_2012091123_RELBRANCH

#filter substitution
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

package @ANDROID_PACKAGE_NAME@;

/** 
 *  Element provides access to a specific UI view (android.view.View). 
 *  See also Driver.findElement().
 */
public interface Element {

    /** Click on the element's view. Returns true on success. */
    boolean click();

    /** Returns true if the element is currently displayed */
    boolean isDisplayed();

    /** 
     * Returns the text currently displayed on the element, or null
     * if the text cannot be retrieved.
     */
    String getText();

    /** Returns the view ID */
    Integer getId();
}