public void switchToFrame(String selector) {
WebElement we = this.locateElement(selector);
this.baseDriver.switchTo().frame(we);
}
找到一個(gè)指定的select,并且通過(guò)index進(jìn)行選擇
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