????jsoup????html
???????????? ???????[ 2016/12/29 10:31:19 ] ??????????????????? html
????4.2.1 ?????????
????tagname: ????tag????????
????ns|tag: ?????????????tag???????????fb|name??<fb:name>
????id: ?????????id?????
????.class: ?????????class?????
????[attribute]: ??????attrribute????????
????[^attri]: ????????attri?????????????
????[attr=value]: ??????????????????????????
????[attr^=value]?? [attr$=value]?? [attr*=value]: ?????????attr??????????????????value???????β?????value????????[href*=/path/]
????[attr~=regex]: ?????????attr??????????????????regex????????????
????*: ???????????
????4.2.2 ????????
????el#id: ?????????????id
????el.class: ?????????????class
????el[attr]: ???????????????????????????????
????????3?????????????a[href].highlight
????ancestor child: ????????div.content p????????<div class=”content”>?o???<p>????????
????ancestor > child: ??????????div.content > p???????????<div class="content">????μ?<p>???????div.content > *????????<div class="content">?μ????????
????siblingA + siblingB: ??????????div.head + div????????<div class="head"><div>?????????в???????????
????siblingA ~ siblingX: ????????h1 ~ p????<h1>??????????<p>?????
????el?? el?? el: ?????????????????????????????????????
????5????÷???
????/*
????previousSibling()??????????????
????nextSibling()?????????????
?????磺
????<form id=form1>
???????????Lily <br/>
???????????Tom <br/>
????????????Peter <br/>
????</form>
????*/
????Elements items = doc.select("form[id=form1]");
????Elements prevs = items.select("br");
????for(Element p : prevs){
????String prevStr = p.previousSibling().toString().trim());
????}
????/*
???????????????
????*/
????String itemTag = "div[class=mydiv]";
????String linkTag = "a"
????Elements items = doc.select(itemTag);
????Elements links = items.select(linkTag);
????for(Element l : links){
????String href = l.attr("abs:href");//????Href
????String absHref = l.attr("href");//???·??
????String text = l.text();
????String title = l.attr("title");
????}
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????