b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

robotium_robotium使用基础_robotium api(37)

电脑杂谈  发布时间:2017-03-14 21:02:58  来源:网络整理
public boolean waitForActivity(Class<? extends android.app.Activity> activityClass,                               int timeout)
Waits for an Activity matching the specified class。Parameters:activityClass - the class of the Activity to wait for。 Example is: MyActivity。classtimeout - the amount of time in milliseconds to waitReturns:true if Activity appears before the timeout and false if it does notwaitForEmptyActivityStack
public boolean waitForEmptyActivityStack(int timeout)
Wait for the activity stack to be empty。Parameters:timeout - the amount of time in milliseconds to waitReturns:true if activity stack is empty before the timeout and false if it is notwaitForFragmentByTag
public boolean waitForFragmentByTag(String tag)
Waits for a Fragment matching the specified tag。

Default timeout is 20 seconds。Parameters:tag - the name of the tagReturns:true if fragment appears and false if it does not appear before the timeoutwaitForFragmentByTag

public boolean waitForFragmentByTag(String tag,                                    int timeout)
Waits for a Fragment matching the specified tag。Parameters:tag - the name of the tagtimeout - the amount of time in milliseconds to waitReturns:true if fragment appears and false if it does not appear before the timeoutwaitForFragmentById
public boolean waitForFragmentById(int id)
Waits for a Fragment matching the specified resource id。 Default timeout is 20 seconds。

Parameters:id - the R。id of the fragmentReturns:true if fragment appears and false if it does not appear before the timeoutwaitForFragmentById


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

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

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