<ruby id="h6500"><table id="h6500"></table></ruby>
    1. <ruby id="h6500"><video id="h6500"></video></ruby>
          1. <progress id="h6500"><u id="h6500"><form id="h6500"></form></u></progress>

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

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

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

            ...
            老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月
              <ruby id="h6500"><table id="h6500"></table></ruby>
              1. <ruby id="h6500"><video id="h6500"></video></ruby>
                    1. <progress id="h6500"><u id="h6500"><form id="h6500"></form></u></progress>