Parameters:text - the text to click。 The parameter will be interpreted as a regular expressionmatch - if multiple objects match the text, this determines which one to clicktime - the amount of time to long clickclickLongOnTextAndPress
public void clickLongOnTextAndPress(String text, int index)Long clicks a View displaying the specified text and then selects an item from the context menu that appears。 Will automatically scroll when needed。Parameters:text - the text to click。 The parameter will be interpreted as a regular expressionindex - the index of the menu item to press。
0 if only one is availableclickOnButton
public void clickOnButton(int index)Clicks a Button matching the specified index。Parameters:index - the index of the Button to click。 0 if only one is availableclickOnRadioButton
public void clickOnRadioButton(int index)Clicks a RadioButton matching the specified index。Parameters:index - the index of the RadioButton to click。 0 if only one is availableclickOnCheckBox
public void clickOnCheckBox(int index)Clicks a CheckBox matching the specified index。Parameters:index - the index of the CheckBox to click。 0 if only one is availableclickOnEditText
public void clickOnEditText(int index)Clicks an EditText matching the specified index。
Parameters:index - the index of the EditText to click。 0 if only one is availableclickInList
public ArrayList clickInList(int line)Clicks the specified list line and returns an ArrayList of the TextView objects that the list line is displaying。 Will use the first ListView it finds。Parameters:line - the line to clickReturns:an ArrayList of the TextView objects located in the list lineclickInList
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-19.html
在维护国家主权的问题上
帅帅的
完蛋了