????1.???ID???????
??????????????ID?????????????????????W3C????????????????????????????????ID????????????????????????????????????ID????????????ID???????????????
???????????ID???????????????????????????????
????driver.findElement(By.id("Title")).sendKeys("test content");//????????????WebElement??娲�?????? ?????????????????
????2.???Name???????
????WebElement searchBox = driver.findElement(By.name("wd"));
????searchBox.sendKeys("java");
????searchBox.submit();//??
????3.???ClassName???????
????4.???TagName???????

???????????????????胁??????????????????????????TagName??????????????????????卸???????????????TagName???????????????????findElements()?????findElement()??????
????List<WebElement> scriptList = driver.findElements(By.tagName("script"));
????System.out.println("There are "+scriptList.size()+" scripts on Xiaomi's page!");
????5.???LinkText???????
????eg.<a href = "www.baidu.com">??</a>
????WebElement aboutGenExam = driver.findElement(By.linkText("??"));
????aboutGenExam.click();
????6.???PartialLinkText???????
????spacer.gif
????????????????路???“??????”????????????HTML??????????????anchor??????????????????????????胁????? ?????“????”???????????????????
????driver.get("www.baidu.com");
????WebElement aboutLink = driver.findElement(By.partialLinkText("????"));
????aboutLink.click();
????findElement()??????????????????????partialLinkText?“????”???????????????????????邪???????????"????"???????????????findElements()???????????
????7.???CSS????????????
????eg.??????????????卸??
????WebElement about = driver.findElement(By.cssSelector("#lsb-id"));
????aboutLink.click();
????8.???Xpath???????
????xpath???????????位???????????????????????谩?????????????????位?????????xpath??cssSelector??
????9.???JQuery????????p34-39??
????JQuery?????????????????????????????????????????JQuery??Selenium????????? ???????????????????????????JQuery???????????????胁???????????????姹�???????????JQuery??????????????姹�????????JQuery??