The parameter will be interpreted as a regular expression。minimumNumberOfMatches - the minimum number of matches expected to be found。 0 matches means that one or more matches are expected to be foundscroll - true if scrolling should be performedonlyVisible - true if only texts visible on the screen should be searchedReturns:true if text is found a specified number of times and false if the text is not foundsetActivityOrientation
public void setActivityOrientation(int orientation)Sets the Orientation (Landscape/Portrait) for the current Activity。
Parameters:orientation - the orientation to set。 Solo。LANDSCAPE for landscape or Solo。PORTRAIT for portrait。getCurrentActivity
public android.app.Activity getCurrentActivity()Returns the current Activity。Returns:the current ActivityassertCurrentActivity
public void assertCurrentActivity(String message, String name)Asserts that the Activity matching the specified name is active。Parameters:message - the message to display if the assert failsname - the name of the Activity that is expected to be active。 Example is: "MyActivity"assertCurrentActivity
public void assertCurrentActivity(String message, Class activityClass)Asserts that the Activity matching the specified class is active。
Parameters:message - the message to display if the assert failsactivityClass - the class of the Activity that is expected to be active。 Example is: MyActivity。classassertCurrentActivity
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-12.html
我们不只会用嘴巴说话
01用自己流量只能微信qq了
美国也就是虚张声势
海军总吨位已经超过了北洋水师