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
美国是德国的总督
看
你知道吗