public void switchToFrame(String selector) {
WebElement we = this.locateElement(selector);
this.baseDriver.switchTo().frame(we);
}
找到一个指定的select,并且通过index进行选择
selectByIndex(selector, index)
public void selectByIndex(String selector, int index) {
WebElement we = this.locateElement(selector);
Select s = new
原文转自:http://gitbook.cn/books/58e54b57cfcd6fa52dcef1d2/index.html