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

robotium_robotium使用基础_robotium api(3)

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

Parameters:instrumentation - the Instrumentation instanceMethod DetailgetActivityMonitor

public android.app.Instrumentation.ActivityMonitor getActivityMonitor()
Returns the ActivityMonitor used by Robotium。Returns:the ActivityMonitor used by RobotiumgetConfig
public Solo.Config getConfig()
Returns the Config used by Robotium。Returns:the Config used by RobotiumgetViews
public ArrayList getViews()
Returns an ArrayList of all the View objects located in the focused Activity or Dialog。Returns:an ArrayList of the View objects located in the focused windowgetViews
public ArrayList getViews(android.view.View parent)
Returns an ArrayList of the View objects contained in the parent View。

Parameters:parent - the parent view from which to return the viewsReturns:an ArrayList of the View objects contained in the specified ViewgetTopParent

public android.view.View getTopParent(android.view.View view)
Returns the absolute top parent View of the specified View。Parameters:view - the View whose top parent is requestedReturns:the top parent ViewwaitForText
public boolean waitForText(String text)
Waits for the specified text to appear。 Default timeout is 20 seconds。Parameters:text - the text to wait for, specified as a regular expressionReturns:true if text is displayed and false if it is not displayed before the timeoutwaitForText
public boolean waitForText(String text,                           int minimumNumberOfMatches,                           long timeout)
Waits for the specified text to appear。


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

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

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