Parameters:x - the x coordinatey - the y coordinatetime - the amount of time to long clickclickOnButton
public void clickOnButton(String text)Clicks a Button displaying the specified text。 Will automatically scroll when needed。Parameters:text - the text displayed by the Button。 The parameter will be interpreted as a regular expressionclickOnImageButton
public void clickOnImageButton(int index)Clicks an ImageButton matching the specified index。Parameters:index - the index of the ImageButton to click。 0 if only one is availableclickOnToggleButton
public void clickOnToggleButton(String text)Clicks a ToggleButton displaying the specified text。

Parameters:text - the text displayed by the ToggleButton。 The parameter will be interpreted as a regular expressionclickOnMenuItem
public void clickOnMenuItem(String text)Clicks a MenuItem displaying the specified text。Parameters:text - the text displayed by the MenuItem。 The parameter will be interpreted as a regular expressionclickOnMenuItem
public void clickOnMenuItem(String text, boolean subMenu)Clicks a MenuItem displaying the specified text。Parameters:text - the text displayed by the MenuItem。 The parameter will be interpreted as a regular expressionsubMenu - true if the menu item could be located in a sub menuclickOnWebElement
public void clickOnWebElement(WebElement webElement)Clicks the specified WebElement。
Parameters:webElement - the WebElement to clickclickOnWebElement
public void clickOnWebElement(By by)Clicks a WebElement matching the specified By object。Parameters:by - the By object。 Examples are: By。id("id") and By。name("name")clickOnWebElement
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-15.html
你马云没错
谁也不傻