Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | package org.mozilla.gecko; |
michael@0 | 6 | |
michael@0 | 7 | /** |
michael@0 | 8 | * Element provides access to a specific UI view (android.view.View). |
michael@0 | 9 | * See also Driver.findElement(). |
michael@0 | 10 | */ |
michael@0 | 11 | public interface Element { |
michael@0 | 12 | |
michael@0 | 13 | /** Click on the element's view. Returns true on success. */ |
michael@0 | 14 | boolean click(); |
michael@0 | 15 | |
michael@0 | 16 | /** Returns true if the element is currently displayed */ |
michael@0 | 17 | boolean isDisplayed(); |
michael@0 | 18 | |
michael@0 | 19 | /** |
michael@0 | 20 | * Returns the text currently displayed on the element, or null |
michael@0 | 21 | * if the text cannot be retrieved. |
michael@0 | 22 | */ |
michael@0 | 23 | String getText(); |
michael@0 | 24 | |
michael@0 | 25 | /** Returns the view ID */ |
michael@0 | 26 | Integer getId(); |
michael@0 | 27 | } |