标签:name sele find tag partial 元素 classname pat bdr
Webdriver提供了八种元素定位方法:
Webdriver提供了八种元素定位方法,对应Java语法:
id -----> findElement(By.id()); 或者 findElements(By.id());
name -----> findElement(By.name());
class name -----> findElement(By.className());
tag name -----> findElement(By.tagName());
link text -----> findElement(By.linkText());
partial link text -----> findElement(By.partialLinkText());
xpath -----> findElement(By.xpath());
css selector -----> findElement(By.cssSelector());
标签:name sele find tag partial 元素 classname pat bdr
原文地址:https://www.cnblogs.com/surenliu/p/12332670.html