Parameters:text - the text to wait for, specified as a regular expressionminimumNumberOfMatches - the minimum number of matches that are expected to be found。 0 means any number of matchestimeout - the the amount of time in milliseconds to waitReturns:true if text is displayed and false if it is not displayed before the timeoutwaitForText
public boolean waitForText(String text, int minimumNumberOfMatches, long timeout, boolean scroll)Waits for the specified text to appear。Parameters:text - the text to wait for, specified as a regular expressionminimumNumberOfMatches - the minimum number of matches that are expected to be found。
0 means any number of matchestimeout - the the amount of time in milliseconds to waitscroll - true if scrolling should be performedReturns:true if text is displayed and false if it is not displayed before the timeoutwaitForText
public boolean waitForText(String text, int minimumNumberOfMatches, long timeout, boolean scroll, boolean onlyVisible)Waits for the specified text to appear。Parameters:text - the text to wait for, specified as a regular expressionminimumNumberOfMatches - the minimum number of matches that are expected to be found。 0 means any number of matchestimeout - the the amount of time in milliseconds to waitscroll - true if scrolling should be performedonlyVisible - true if only visible text views should be waited forReturns:true if text is displayed and false if it is not displayed before the timeoutwaitForView
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-4.html
早都预料该公司要出事
没可比性
至于被平均的部份肯定在不你手中