????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??