michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko; michael@0: michael@0: /** michael@0: * Element provides access to a specific UI view (android.view.View). michael@0: * See also Driver.findElement(). michael@0: */ michael@0: public interface Element { michael@0: michael@0: /** Click on the element's view. Returns true on success. */ michael@0: boolean click(); michael@0: michael@0: /** Returns true if the element is currently displayed */ michael@0: boolean isDisplayed(); michael@0: michael@0: /** michael@0: * Returns the text currently displayed on the element, or null michael@0: * if the text cannot be retrieved. michael@0: */ michael@0: String getText(); michael@0: michael@0: /** Returns the view ID */ michael@0: Integer getId(); michael@0: }