摘要: 通常selenium By 可以通过id,class,xpath,css等定位页面元素。id 和class比较简单,此处略....介绍下xpath的常用内置函数 contains()/not (contains()), starts-with()/ends-with(), position(), last()...代码如下 @FindBy(how = How.XPATH, using = "//span[starts-with(@id,'bn_id')]/span[contains(@class,'bn_class')]") private 阅读全文
posted @ 2012-08-13 13:28 H@H@ 阅读(4893) 评论(0) 推荐(0) 编辑