robotium_robotium使用基础_robotium api(10)

电脑杂谈  发布时间:2017-03-14 21:02:58  来源:网络整理

0 matches means that one or more matches are expected to be foundonlyVisible - true if only Button visible on the screen should be searchedReturns:true if a Button displaying the specified text is found a specified number of times and false if it is not foundsearchToggleButton

public boolean searchToggleButton(String text,                                  int minimumNumberOfMatches)
Searches for a ToggleButton displaying the specified text and returns true if the searched ToggleButton 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 ToggleButton displaying the specified text is found a specified number of times and false if it is not foundsearchText

public boolean searchText(String text)
Searches for the specified text and returns true if at least one item is found displaying the expected text。 Will automatically scroll when needed。Parameters:text - the text to search for。

The parameter will be interpreted as a regular expressionReturns:true if the search string is found and false if it is not foundsearchText

public boolean searchText(String text,                          boolean onlyVisible)
Searches for the specified text and returns true if at least one item is found displaying the expected text。 Will automatically scroll when needed。Parameters:text - the text to search for。 The parameter will be interpreted as a regular expressiononlyVisible - true if only texts visible on the screen should be searchedReturns:true if the search string is found and false if it is not foundsearchText


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-37529-10.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...