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

robotium_robotium使用基础_robotium api(14)

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

Default timeout is 20 seconds。Returns:true if the Dialog is closed before the timeout and false if it is not closedwaitForDialogToOpen

public boolean waitForDialogToOpen(long timeout)
Waits for a Dialog to open。Parameters:timeout - the amount of time in milliseconds to waitReturns:true if the Dialog is opened before the timeout and false if it is not openedwaitForDialogToClose
public boolean waitForDialogToClose(long timeout)
Waits for a Dialog to close。Parameters:timeout - the amount of time in milliseconds to waitReturns:true if the Dialog is closed before the timeout and false if it is not closedgoBack
public void goBack()
Simulates pressing the hardware back key。

clickOnScreen

public void clickOnScreen(float x,                          float y)
Clicks the specified coordinates。Parameters:x - the x coordinatey - the y coordinateclickOnScreen
public void clickOnScreen(float x,                          float y,                          int numberOfClicks)
Clicks the specified coordinates rapidly a specified number of times。 Requires API level >= 14。Parameters:x - the x coordinatey - the y coordinatenumberOfClicks - the number of clicks to performclickLongOnScreen
public void clickLongOnScreen(float x,                              float y)
Long clicks the specified coordinates。Parameters:x - the x coordinatey - the y coordinateclickLongOnScreen
public void clickLongOnScreen(float x,                              float y,                              int time)
Long clicks the specified coordinates for a specified amount of time。


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

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

    • 姬踕
      姬踕

      淘宝队像狮子一样赢了

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