基于 SELENIUM 的自動化測試架構(40)

發表于:2017-04-11來源:gitbook作者:凌俁Linty?點擊數: 標簽:selenium
this .baseDriver.findElement(By.id(selector)); } else { // 用 分隔符 分成兩個部分 String by = selector.split( this .byChar)[ 0 ]; String value = selector.split( this .byChar)[ 1 ]; we = find
this.baseDriver.findElement(By.id(selector)); } else { // 用 分隔符 分成兩個部分 String by = selector.split(this.byChar)[0]; String value = selector.split(this.byChar)[1]; we = findElementByChar(by, value); } return we; }
  • 接下來的重點,是實現 findElementByChar(by, value)
private WebElement findElementByChar(String by, String value) {
  WebElement we = null;
  switch (by.toLowerCase()) {
    case 



           

原文轉自:http://gitbook.cn/books/58e54b57cfcd6fa52dcef1d2/index.html

...
国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97