robotium_robotium使用基础_robotium api(6)

电脑杂谈  发布时间:2017-03-14 21:02:58  来源:网络整理
public  boolean waitForView(android.view.View view)
Waits for the specified View。

Default timeout is 20 seconds。Parameters:view - the View object to wait forReturns:true if the View is displayed and false if it is not displayed before the timeoutwaitForView

public  boolean waitForView(android.view.View view,                                                         int timeout,                                                         boolean scroll)
Waits for the specified View。Parameters:view - the View object to wait fortimeout - the amount of time in milliseconds to waitscroll - true if scrolling should be performedReturns:true if the View is displayed and false if it is not displayed before the timeoutwaitForView
public  boolean waitForView(Class viewClass,                                                         int minimumNumberOfMatches,                                                         int timeout)
Waits for a View matching the specified class。

Parameters:viewClass - the View class to wait forminimumNumberOfMatches - the minimum number of matches that are expected to be found。 0 means any number of matchestimeout - the amount of time in milliseconds to waitReturns:true if the View is displayed and false if it is not displayed before the timeoutwaitForView

public  boolean waitForView(Class viewClass,                                                         int minimumNumberOfMatches,                                                         int timeout,                                                         boolean scroll)
Waits for a View matching the specified class。Parameters:viewClass - the View class to wait forminimumNumberOfMatches - the minimum number of matches that are expected to be found。


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

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

    • 燕哀侯
      燕哀侯

      而且癌症这个东西你越怕它

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