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 timeoutwaitForWebElement
public boolean waitForWebElement(By by)Waits for a WebElement matching the specified By object。 Default timeout is 20 seconds。Parameters:by - the By object。 Examples are: By。id("id") and By。name("name")Returns:true if the WebElement is displayed and false if it is not displayed before the timeoutwaitForWebElement
public boolean waitForWebElement(By by, int timeout, boolean scroll)Waits for a WebElement matching the specified By object。
Parameters:by - the By object。 Examples are: By。id("id") and By。name("name")timeout - the the amount of time in milliseconds to waitscroll - true if scrolling should be performedReturns:true if the WebElement is displayed and false if it is not displayed before the timeoutwaitForWebElement
public boolean waitForWebElement(By by, int minimumNumberOfMatches, int timeout, boolean scroll)Waits for a WebElement matching the specified By object。Parameters:by - the By object。 Examples are: By。id("id") and By。name("name")minimumNumberOfMatches - 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 the WebElement is displayed and false if it is not displayed before the timeoutwaitForCondition
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-7.html
你这不是自己在打自己的脸吗
对于破坏亚洲地区稳定