基于 SELENIUM 的自動(dòng)化測試架構(42)
發(fā)表于:2017-04-11來(lái)源:gitbook作者:凌俁Linty?點(diǎn)擊數:
標簽:selenium
link : case text : case linktext : case l : we = this .baseDriver.findElement(By.linkText(value)); break ; //TODO: other by type } return we;} 使用上面的封裝類(lèi),就需要指定特定的 selec
"link":
case "text":
case "linktext":
case "l":
we =
this.baseDriver.findElement(By.linkText(value));
break;
}
return we;
}
使用上面的封裝類(lèi),就需要指定特定的 selector。

調用的具體示例:
void
原文轉自:http://gitbook.cn/books/58e54b57cfcd6fa52dcef1d2/index.html