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

robotium_robotium使用基础_robotium api(12)

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

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了

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