public boolean searchToggleButton(String text)Searches for a ToggleButton displaying the specified text and returns true if at least one ToggleButton is found。 Will automatically scroll when needed。Parameters:text - the text to search for。
The parameter will be interpreted as a regular expressionReturns:true if a ToggleButton displaying the specified text is found and false if it is not foundsearchButton
public boolean searchButton(String text, int minimumNumberOfMatches)Searches for a Button displaying the specified text and returns true if the searched Button is found a specified number of times。 Will automatically scroll when needed。Parameters:text - the text to search for。 The parameter will be interpreted as a regular expressionminimumNumberOfMatches - the minimum number of matches expected to be found。
0 matches means that one or more matches are expected to be foundReturns:true if a Button displaying the specified text is found a specified number of times and false if it is not foundsearchButton
public boolean searchButton(String text, int minimumNumberOfMatches, boolean onlyVisible)Searches for a Button displaying the specified text and returns true if the searched Button is found a specified number of times。 Will automatically scroll when needed。Parameters:text - the text to search for。 The parameter will be interpreted as a regular expressionminimumNumberOfMatches - the minimum number of matches expected to be found。
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-9.html
再于是