Parameters:editText - the EditText to clearclearTextInWebElement
public void clearTextInWebElement(By by)Clears text in a WebElement matching the specified By object。Parameters:by - the By object。 Examples are: By。id("id") and By。name("name")clickOnImage
public void clickOnImage(int index)Clicks an ImageView matching the specified index。Parameters:index - the index of the ImageView to click。 0 if only one is availablegetEditText
public android.widget.EditText getEditText(int index)Returns an EditText matching the specified index。Parameters:index - the index of the EditText。 0 if only one is availableReturns:an EditText matching the specified indexgetButton
public android.widget.Button getButton(int index)Returns a Button matching the specified index。

Parameters:index - the index of the Button。 0 if only one is availableReturns:a Button matching the specified indexgetText
public android.widget.TextView getText(int index)Returns a TextView matching the specified index。Parameters:index - the index of the TextView。 0 if only one is availableReturns:a TextView matching the specified indexgetImage
public android.widget.ImageView getImage(int index)Returns an ImageView matching the specified index。Parameters:index - the index of the ImageView。 0 if only one is availableReturns:an ImageView matching the specified indexgetImageButton
public android.widget.ImageButton getImageButton(int index)Returns an ImageButton matching the specified index。
Parameters:index - the index of the ImageButton。 0 if only one is availableReturns:the ImageButton matching the specified indexgetText
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-29.html
有人好办事啊
强力反对和谴责