robotium_robotium使用基础_robotium api(8)

电脑杂谈  发布时间:2017-03-14 21:02:58  来源:网络整理
public boolean waitForCondition(Condition condition,                                int timeout)
Waits for a condition to be satisfied。Parameters:condition - the condition to wait fortimeout - the amount of time in milliseconds to waitReturns:true if condition is satisfied and false if it is not satisfied before the timeoutsearchEditText
public boolean searchEditText(String text)
Searches for a text in the EditText objects currently displayed and returns true if found。

Will automatically scroll when needed。Parameters:text - the text to search forReturns:true if an EditText displaying the specified text is found or false if it is not foundsearchButton

public boolean searchButton(String text)
Searches for a Button displaying the specified text and returns true if at least one Button 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 Button displaying the specified text is found and false if it is not foundsearchButton
public boolean searchButton(String text,                            boolean onlyVisible)
Searches for a Button displaying the specified text and returns true if at least one Button is found。

Will automatically scroll when needed。Parameters:text - the text to search for。 The parameter will be interpreted as a regular expressiononlyVisible - true if only Button visible on the screen should be searchedReturns:true if a Button displaying the specified text is found and false if it is not foundsearchToggleButton


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

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

    • 香取慎吾
      香取慎吾

      趁机利用战争削弱美日

    • 唐泽润
      唐泽润

      霉菌给了中国加大岛礁建设的绝佳良机

    • 卢群玉
      卢群玉

      千千爱你

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