定位页面元素//通过Id定位元素WebElement element = driver.findElement(By.id(“id名"))
;//通过name定位元素WebElement element = driver.findElement(By.name(“name名"))
;//通过xpath定位元素WebElement element = driver.findElement(By.xpath(“xpath路径"))
;//通过标签的值定位元素WebElement cheese = driver.findElement(By.linkText(“标签的值"))
;//通过class的值定位元素List list=driver.findElements(By.className(“class值"))
;//通过标签名定位元素List list = driver.findElements(By.tagName(“标签名"));