public boolean waitForView(int id)Waits for a View matching the specified resource id。
Default timeout is 20 seconds。Parameters:id - the R。id of the View to wait forReturns:true if the View is displayed and false if it is not displayed before the timeoutwaitForView
public boolean waitForView(int id, int minimumNumberOfMatches, int timeout)Waits for a View matching the specified resource id。Parameters:id - the R。id of the View to wait forminimumNumberOfMatches - the minimum number of matches that are expected to be found。 0 means any number of matchestimeout - the amount of time in milliseconds to waitReturns:true if the View is displayed and false if it is not displayed before the timeoutwaitForView
public boolean waitForView(int id, int minimumNumberOfMatches, int timeout, boolean scroll)Waits for a View matching the specified resource id。
Parameters:id - the R。id of the View to wait forminimumNumberOfMatches - the minimum number of matches that are expected to be found。 0 means any number of matchestimeout - the amount of time in milliseconds to waitscroll - true if scrolling should be performedReturns:true if the View is displayed and false if it is not displayed before the timeoutwaitForView
publicWaits for a View matching the specified class。 Default timeout is 20 seconds。Parameters:viewClass - the View class to wait forReturns:true if the View is displayed and false if it is not displayed before the timeoutwaitForViewboolean waitForView(Class viewClass)
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-37529-5.html
哈哈
26在哪里
家里米