Parameters:index - the index of the EditText。 0 if only one is availabletext - the text to type in the EditText fieldtypeText
public void typeText(android.widget.EditText editText, String text)Types text in the specified EditText。Parameters:editText - the EditText to type text intext - the text to type in the EditText fieldtypeTextInWebElement
public void typeTextInWebElement(By by, String text)Types text in a WebElement matching the specified By object。Parameters:by - the By object。 Examples are: By。id("id") and By。name("name")text - the text to enter in the WebElement fieldtypeTextInWebElement
public void typeTextInWebElement(By by, String text, int match)Types text in a WebElement matching the specified By object。
Parameters:by - the By object。 Examples are: By。id("id") and By。name("name")text - the text to enter in the WebElement fieldmatch - if multiple objects match, this determines which one will be typed intypeTextInWebElement
public void typeTextInWebElement(WebElement webElement, String text)Types text in the specified WebElement。Parameters:webElement - the WebElement to type text intext - the text to enter in the WebElement fieldclearEditText
public void clearEditText(int index)Clears the value of an EditText。Parameters:index - the index of the EditText to clear。 0 if only one is availableclearEditText
public void clearEditText(android.widget.EditText editText)Clears the value of an EditText。
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-28.html
真够恶心的
1和之前的都不卡听卖手机的说个别更新了会卡