robotium_robotium使用基础_robotium api(5)

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

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

public boolean waitForView(int id,                           int minimumNumberOfMatches,                           int timeout)
Waits for a View matching the specified resource id。Parameters:id - the R。id of the View 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(int id,                           int minimumNumberOfMatches,                           int timeout,                           boolean scroll)
Waits for a View matching the specified resource id。

Parameters:id - the R。id of the View 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 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)
Waits for a View matching the specified class。 Default timeout is 20 seconds。Parameters:viewClass - the View class to wait forReturns:true if the View is displayed and false if it is not displayed before the timeoutwaitForView


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

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

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