public void clickOnWebElement(By by, int match)Clicks a WebElement matching the specified By object。Parameters:by - the By object。 Examples are: By。id("id") and By。name("name")match - if multiple objects match, this determines which one to clickclickOnWebElement
public void clickOnWebElement(By by, int match, boolean scroll)Clicks a WebElement matching the specified By object。Parameters:by - the By object。
Examples are: By。id("id") and By。name("name")match - if multiple objects match, this determines which one to clickscroll - true if scrolling should be performedpressMenuItem
public void pressMenuItem(int index)Presses a MenuItem matching the specified index。 Index 0 is the first item in the first row, Index 3 is the first item in the second row and index 6 is the first item in the third row。Parameters:index - the index of the MenuItem to presspressMenuItem
public void pressMenuItem(int index, int itemsPerRow)Presses a MenuItem matching the specified index。 Supports three rows with a specified amount of items。
If itemsPerRow equals 5 then index 0 is the first item in the first row, index 5 is the first item in the second row and index 10 is the first item in the third row。Parameters:index - the index of the MenuItem to pressitemsPerRow - the amount of menu items there are per rowpressSoftKeyboardNextButton
public void pressSoftKeyboardNextButton()Presses the soft keyboard next button。pressSoftKeyboardSearchButton
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-16.html
严厉打击美国的挑衅行为