Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/329.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java HtmlUnit Ajax调用永远不会在HtmlPage中呈现_Java_Ajax_Screen Scraping_Htmlunit - Fatal编程技术网

Java HtmlUnit Ajax调用永远不会在HtmlPage中呈现

Java HtmlUnit Ajax调用永远不会在HtmlPage中呈现,java,ajax,screen-scraping,htmlunit,Java,Ajax,Screen Scraping,Htmlunit,我正在尝试使用HtmlUnit 2.31扫描页面。我只是通过URL获取一个HtmlPage。但是,页面似乎启动了一些AJAX调用(没有用户交互)。我需要等待调用完成并“呈现”,以便查看值。这是我的密码: public static void main( String[] args ) throws IOException, InterruptedException { WebClient webClient = new WebClient(BrowserVersion.C

我正在尝试使用HtmlUnit 2.31扫描页面。我只是通过URL获取一个HtmlPage。但是,页面似乎启动了一些AJAX调用(没有用户交互)。我需要等待调用完成并“呈现”,以便查看值。这是我的密码:

    public static void main( String[] args ) throws IOException, InterruptedException {
        WebClient webClient = new WebClient(BrowserVersion.CHROME);
        webClient.getOptions().setJavaScriptEnabled(true);
        webClient.getOptions().setThrowExceptionOnScriptError(false);
        webClient.getOptions().setCssEnabled(false);
        webClient.setAjaxController(new NicelyResynchronizingAjaxController());
        webClient.setJavaScriptTimeout(10000);

        String itemsForSalePageURL = "https://miami-dade.realtaxdeed.com/index.cfm?zaction=AUCTION&Zmethod=PREVIEW&AUCTIONDATE=07/24/2018";
        HtmlPage previewItemsForSalePage = webClient.getPage(itemsForSalePageURL);

        final JavaScriptJobManager tmpJobManager = previewItemsForSalePage.getEnclosingWindow().getJobManager();
        while(tmpJobManager.getJobCount()>0){
            System.out.println("javascript is still running...");
        }

        boolean doneLoading = false;
        while(!doneLoading){
            System.out.println("checking if page is done loading...");
            List<HtmlDivision> loadingElements = previewItemsForSalePage.getByXPath("//div[@class = 'Loading']");
            if(loadingElements.isEmpty()){
                doneLoading = true;
            }
        }

        String contents = previewItemsForSalePage.asXml();

        System.out.println( "Run complete." );
    }
在Chrome中,这计算为

<div id="Area_C" class="Auct_Area" ref="N" arid="C">
    <div tabindex="0" id="AITEM_1159704" class="AUCTION_ITEM PREVIEW adc-spacer" aid="1159704" rem="0" isset="1" data-test="check"><div tabindex="0"><div tabindex="0" class="adc-tab"><div tabindex="-1" class="banner-left-side"></div>This item has <strong>complimentary</strong> photos, valuation reports and title information.<div tabindex="-1" class="banner-right-side"></div></div><div tabindex="0" class="AUCTION_STATS"><div tabindex="0" class="ASTAT_MSGA ASTAT_LBL">Auction Status</div><div tabindex="0" class="ASTAT_MSGB Astat_DATA">Canceled per Bankruptcy</div><div tabindex="0" class="ASTAT_MSGC ASTAT_LBL"></div> <div tabindex="0" class="ASTAT_MSGD Astat_DATA"></div><div tabindex="0" class="ASTAT_MSG_SOLDTO_Label ASTAT_LBL"></div><div tabindex="0" class="ASTAT_MSG_SOLDTO_MSG Astat_DATA"></div></div><div tabindex="0" class="AUCTION_DETAILS adc"> <table class="ad_tab" tabindex="0"><tbody><tr><th class="AD_LBL" scope="row">Auction Type:</th><td class="AD_DTA">FORECLOSURE</td></tr><tr><th class="AD_LBL" scope="row" aria-label="Case Number">Case #:</th><td class="AD_DTA"> 2008-069895-CA-01</td></tr><tr><th class="AD_LBL" scope="row">Final Judgment Amount:</th><td class="AD_DTA">$567,016.30</td></tr><tr><th class="AD_LBL" scope="row">Parcel ID:</th><td class="AD_DTA"> <a href="http://www.miamidade.gov/propertysearch/#/?folio=0420360070830" onclick="return showExitPopup();" target="_blank">04-2036-007-0830</a></td></tr><tr><th class="AD_LBL" scope="row">Property Address:</th><td class="AD_DTA">618 W 65 DR</td></tr><tr><th class="AD_LBL" scope="row"></th><td class="AD_DTA">HIALEAH, FL- 33012</td></tr> <tr><th class="AD_LBL" scope="row">Assessed Value:</th><td class="AD_DTA">$131,793.00</td></tr><tr><th class="AD_LBL" scope="row">Plaintiff max bid:</th><td class="AD_DTA ASTAT_MSGPB">$279,450.00</td></tr></tbody></table></div></div> </div><div class="AUCTION_ITEM_SPACER">&nbsp;</div><div tabindex="0" id="AITEM_1160530" aria-label="Auction Details" class="AUCTION_ITEM PREVIEW" aid="1160530" rem="0" isset="1"><div class="AUCTION_STATS"><div tabindex="0" class="ASTAT_MSGA ASTAT_LBL">Auction Sold</div><div tabindex="0" class="ASTAT_MSGB Astat_DATA">07/24/2018 09:07 AM ET</div><div tabindex="0" class="ASTAT_MSGC ASTAT_LBL">Amount</div> <div tabindex="0" class="ASTAT_MSGD Astat_DATA">$198,200.00</div><div tabindex="0" class="ASTAT_MSG_SOLDTO_Label ASTAT_LBL">Sold To</div><div tabindex="0" class="ASTAT_MSG_SOLDTO_MSG Astat_DATA">3rd Party Bidder</div></div><div class="AUCTION_DETAILS"><table class="ad_tab" tabindex="0"><tbody><tr><th class="AD_LBL" scope="row">Auction Type:</th><td class="AD_DTA">FORECLOSURE</td></tr><tr><th class="AD_LBL" scope="row" aria-label="Case Number">Case #:</th><td class="AD_DTA"> 2012-007563-CA-01</td></tr><tr><th class="AD_LBL" scope="row">Final Judgment Amount:</th><td class="AD_DTA">$123,600.66</td></tr><tr><th class="AD_LBL" scope="row">Parcel ID:</th><td class="AD_DTA"> <a href="http://www.miamidade.gov/propertysearch/#/?folio=3069350010170" onclick="return showExitPopup();" target="_blank">30-6935-001-0170</a></td></tr><tr><th class="AD_LBL" scope="row">Property Address:</th><td class="AD_DTA">26711 SW 133 CT</td></tr><tr><th class="AD_LBL" scope="row"></th><td class="AD_DTA">MIAMI, FL- 33032</td></tr> <tr><th class="AD_LBL" scope="row">Assessed Value:</th><td class="AD_DTA">$104,378.00</td></tr><tr><th class="AD_LBL" scope="row">Plaintiff max bid:</th><td class="AD_DTA ASTAT_MSGPB">$190,539.81</td></tr></tbody></table></div> </div><div class="AUCTION_ITEM_SPACER">&nbsp;</div><div tabindex="0" id="AITEM_1156810" aria-label="Auction Details" class="AUCTION_ITEM PREVIEW" aid="1156810" rem="0" isset="1"><div class="AUCTION_STATS"><div tabindex="0" class="ASTAT_MSGA ASTAT_LBL">Auction Status</div><div tabindex="0" class="ASTAT_MSGB Astat_DATA">Canceled per County</div><div tabindex="0" class="ASTAT_MSGC ASTAT_LBL"></div> <div tabindex="0" class="ASTAT_MSGD Astat_DATA"></div><div tabindex="0" class="ASTAT_MSG_SOLDTO_Label ASTAT_LBL"></div><div tabindex="0" class="ASTAT_MSG_SOLDTO_MSG Astat_DATA"></div></div><div class="AUCTION_DETAILS"><table class="ad_tab" tabindex="0"><tbody><tr><th class="AD_LBL" scope="row">Auction Type:</th><td class="AD_DTA">FORECLOSURE</td></tr><tr><th class="AD_LBL" scope="row" aria-label="Case Number">Case #:</th><td class="AD_DTA"> 2013-006996-CA-01</td></tr><tr><th class="AD_LBL" scope="row">Final Judgment Amount:</th><td class="AD_DTA">$1,060,190.67</td></tr><tr><th class="AD_LBL" scope="row">Parcel ID:</th><td class="AD_DTA"> <a href="http://www.miamidade.gov/propertysearch/#/?folio=3350330550030" onclick="return showExitPopup();" target="_blank">33-5033-055-0030</a></td></tr><tr><th class="AD_LBL" scope="row">Property Address:</th><td class="AD_DTA">17321 SW 93 AVE</td></tr><tr><th class="AD_LBL" scope="row"></th><td class="AD_DTA">PALMETTO BAY, FL- 33157</td></tr> <tr><th class="AD_LBL" scope="row">Assessed Value:</th><td class="AD_DTA">$276,458.00</td></tr><tr><th class="AD_LBL" scope="row">Plaintiff max bid:</th><td class="AD_DTA ASTAT_MSGPB">Hidden</td></tr></tbody></table></div> </div><div class="AUCTION_ITEM_SPACER">&nbsp;</div><div tabindex="0" id="AITEM_1150473" aria-label="Auction Details" class="AUCTION_ITEM PREVIEW" aid="1150473" rem="0" isset="1"><div class="AUCTION_STATS"><div tabindex="0" class="ASTAT_MSGA ASTAT_LBL">Auction Status</div><div tabindex="0" class="ASTAT_MSGB Astat_DATA">Canceled per Order</div><div tabindex="0" class="ASTAT_MSGC ASTAT_LBL"></div> <div tabindex="0" class="ASTAT_MSGD Astat_DATA"></div><div tabindex="0" class="ASTAT_MSG_SOLDTO_Label ASTAT_LBL"></div><div tabindex="0" class="ASTAT_MSG_SOLDTO_MSG Astat_DATA"></div></div><div class="AUCTION_DETAILS"><table class="ad_tab" tabindex="0"><tbody><tr><th class="AD_LBL" scope="row">Auction Type:</th><td class="AD_DTA">FORECLOSURE</td></tr><tr><th class="AD_LBL" scope="row" aria-label="Case Number">Case #:</th><td class="AD_DTA"> 2013-009405-CA-01</td></tr><tr><th class="AD_LBL" scope="row">Final Judgment Amount:</th><td class="AD_DTA">$161,175.75</td></tr><tr><th class="AD_LBL" scope="row">Parcel ID:</th><td class="AD_DTA"> <a href="http://www.miamidade.gov/propertysearch/#/?folio=0821280140050" onclick="return showExitPopup();" target="_blank">08-2128-014-0050</a></td></tr><tr><th class="AD_LBL" scope="row">Property Address:</th><td class="AD_DTA">13247 ASWAN RD</td></tr><tr><th class="AD_LBL" scope="row"></th><td class="AD_DTA">OPA-LOCKA, FL- 33054</td></tr> <tr><th class="AD_LBL" scope="row">Assessed Value:</th><td class="AD_DTA">$88,602.00</td></tr><tr><th class="AD_LBL" scope="row">Plaintiff max bid:</th><td class="AD_DTA ASTAT_MSGPB">Hidden</td></tr></tbody></table></div> </div><div class="AUCTION_ITEM_SPACER">&nbsp;</div><div tabindex="0" id="AITEM_1159431" aria-label="Auction Details" class="AUCTION_ITEM PREVIEW" aid="1159431" rem="0" isset="1"><div class="AUCTION_STATS"><div tabindex="0" class="ASTAT_MSGA ASTAT_LBL">Auction Sold</div><div tabindex="0" class="ASTAT_MSGB Astat_DATA">07/24/2018 09:14 AM ET</div><div tabindex="0" class="ASTAT_MSGC ASTAT_LBL">Amount</div> <div tabindex="0" class="ASTAT_MSGD Astat_DATA">$390,200.00</div><div tabindex="0" class="ASTAT_MSG_SOLDTO_Label ASTAT_LBL">Sold To</div><div tabindex="0" class="ASTAT_MSG_SOLDTO_MSG Astat_DATA">3rd Party Bidder</div></div><div class="AUCTION_DETAILS"><table class="ad_tab" tabindex="0"><tbody><tr><th class="AD_LBL" scope="row">Auction Type:</th><td class="AD_DTA">FORECLOSURE</td></tr><tr><th class="AD_LBL" scope="row" aria-label="Case Number">Case #:</th><td class="AD_DTA"> 2014-012973-CA-01</td></tr><tr><th class="AD_LBL" scope="row">Final Judgment Amount:</th><td class="AD_DTA">$255,004.82</td></tr><tr><th class="AD_LBL" scope="row">Parcel ID:</th><td class="AD_DTA"> <a href="http://www.miamidade.gov/propertysearch/#/?folio=0141210071790" onclick="return showExitPopup();" target="_blank">01-4121-007-1790</a></td></tr><tr><th class="AD_LBL" scope="row">Property Address:</th><td class="AD_DTA">3321 FROW AVE</td></tr><tr><th class="AD_LBL" scope="row"></th><td class="AD_DTA">MIAMI, FL- 33133</td></tr> <tr><th class="AD_LBL" scope="row">Assessed Value:</th><td class="AD_DTA">$199,959.00</td></tr><tr><th class="AD_LBL" scope="row">Plaintiff max bid:</th><td class="AD_DTA ASTAT_MSGPB">$287,550.00</td></tr></tbody></table></div> </div><div class="AUCTION_ITEM_SPACER">&nbsp;</div><div tabindex="0" id="AITEM_1145542" aria-label="Auction Details" class="AUCTION_ITEM PREVIEW" aid="1145542" rem="0" isset="1"><div class="AUCTION_STATS"><div tabindex="0" class="ASTAT_MSGA ASTAT_LBL">Auction Status</div><div tabindex="0" class="ASTAT_MSGB Astat_DATA">Canceled per Bankruptcy</div><div tabindex="0" class="ASTAT_MSGC ASTAT_LBL"></div> <div tabindex="0" class="ASTAT_MSGD Astat_DATA"></div><div tabindex="0" class="ASTAT_MSG_SOLDTO_Label ASTAT_LBL"></div><div tabindex="0" class="ASTAT_MSG_SOLDTO_MSG Astat_DATA"></div></div><div class="AUCTION_DETAILS"><table class="ad_tab" tabindex="0"><tbody><tr><th class="AD_LBL" scope="row">Auction Type:</th><td class="AD_DTA">FORECLOSURE</td></tr><tr><th class="AD_LBL" scope="row" aria-label="Case Number">Case #:</th><td class="AD_DTA"> 2014-020812-CA-01</td></tr><tr><th class="AD_LBL" scope="row">Final Judgment Amount:</th><td class="AD_DTA">$294,642.58</td></tr><tr><th class="AD_LBL" scope="row">Parcel ID:</th><td class="AD_DTA"> <a href="http://www.miamidade.gov/propertysearch/#/?folio=3050290190190" onclick="return showExitPopup();" target="_blank">30-5029-019-0190</a></td></tr><tr><th class="AD_LBL" scope="row">Property Address:</th><td class="AD_DTA">15900 SW 105 AVE</td></tr><tr><th class="AD_LBL" scope="row"></th><td class="AD_DTA">MIAMI, FL- 33157</td></tr> <tr><th class="AD_LBL" scope="row">Assessed Value:</th><td class="AD_DTA">$153,877.00</td></tr><tr><th class="AD_LBL" scope="row">Plaintiff max bid:</th><td class="AD_DTA ASTAT_MSGPB">Hidden</td></tr></tbody></table></div> </div><div class="AUCTION_ITEM_SPACER">&nbsp;</div><div tabindex="0" id="AITEM_1144806" class="AUCTION_ITEM PREVIEW adc-spacer" aid="1144806" rem="0" isset="1" data-test="check"><div tabindex="0"><div tabindex="0" class="adc-tab"><div tabindex="-1" class="banner-left-side"></div>This item has <strong>complimentary</strong> photos, valuation reports and title information.<div tabindex="-1" class="banner-right-side"></div></div><div tabindex="0" class="AUCTION_STATS"><div tabindex="0" class="ASTAT_MSGA ASTAT_LBL">Auction Status</div><div tabindex="0" class="ASTAT_MSGB Astat_DATA">Canceled per Order</div><div tabindex="0" class="ASTAT_MSGC ASTAT_LBL"></div> <div tabindex="0" class="ASTAT_MSGD Astat_DATA"></div><div tabindex="0" class="ASTAT_MSG_SOLDTO_Label ASTAT_LBL"></div><div tabindex="0" class="ASTAT_MSG_SOLDTO_MSG Astat_DATA"></div></div><div tabindex="0" class="AUCTION_DETAILS adc"> <table class="ad_tab" tabindex="0"><tbody><tr><th class="AD_LBL" scope="row">Auction Type:</th><td class="AD_DTA">FORECLOSURE</td></tr><tr><th class="AD_LBL" scope="row" aria-label="Case Number">Case #:</th><td class="AD_DTA"> 2015-002717-CA-01</td></tr><tr><th class="AD_LBL" scope="row">Final Judgment Amount:</th><td class="AD_DTA">$500,378.48</td></tr><tr><th class="AD_LBL" scope="row">Parcel ID:</th><td class="AD_DTA"> <a href="http://www.miamidade.gov/propertysearch/#/?folio=3020030381200" onclick="return showExitPopup();" target="_blank">30-2003-038-1200</a></td></tr><tr><th class="AD_LBL" scope="row">Property Address:</th><td class="AD_DTA">19522 NW 77 CT</td></tr><tr><th class="AD_LBL" scope="row"></th><td class="AD_DTA">HIALEAH , FL- 33015</td></tr> <tr><th class="AD_LBL" scope="row">Assessed Value:</th><td class="AD_DTA">$273,509.00</td></tr><tr><th class="AD_LBL" scope="row">Plaintiff max bid:</th><td class="AD_DTA ASTAT_MSGPB">Hidden</td></tr></tbody></table></div></div> </div><div class="AUCTION_ITEM_SPACER">&nbsp;</div><div tabindex="0" id="AITEM_1155118" aria-label="Auction Details" class="AUCTION_ITEM PREVIEW" aid="1155118" rem="0" isset="1"><div class="AUCTION_STATS"><div tabindex="0" class="ASTAT_MSGA ASTAT_LBL">Auction Sold</div><div tabindex="0" class="ASTAT_MSGB Astat_DATA">07/24/2018 09:20 AM ET</div><div tabindex="0" class="ASTAT_MSGC ASTAT_LBL">Amount</div> <div tabindex="0" class="ASTAT_MSGD Astat_DATA">$373,100.00</div><div tabindex="0" class="ASTAT_MSG_SOLDTO_Label ASTAT_LBL">Sold To</div><div tabindex="0" class="ASTAT_MSG_SOLDTO_MSG Astat_DATA">3rd Party Bidder</div></div><div class="AUCTION_DETAILS"><table class="ad_tab" tabindex="0"><tbody><tr><th class="AD_LBL" scope="row">Auction Type:</th><td class="AD_DTA">FORECLOSURE</td></tr><tr><th class="AD_LBL" scope="row" aria-label="Case Number">Case #:</th><td class="AD_DTA"> 2015-004160-CA-01</td></tr><tr><th class="AD_LBL" scope="row">Final Judgment Amount:</th><td class="AD_DTA">$650,255.11</td></tr><tr><th class="AD_LBL" scope="row">Parcel ID:</th><td class="AD_DTA"> <a href="http://www.miamidade.gov/propertysearch/#/?folio=3049090040080" onclick="return showExitPopup();" target="_blank">30-4909-004-0080</a></td></tr><tr><th class="AD_LBL" scope="row">Property Address:</th><td class="AD_DTA">15495 SW 13 TER</td></tr><tr><th class="AD_LBL" scope="row"></th><td class="AD_DTA">MIAMI, FL- 33194</td></tr> <tr><th class="AD_LBL" scope="row">Assessed Value:</th><td class="AD_DTA">$267,671.00</td></tr><tr><th class="AD_LBL" scope="row">Plaintiff max bid:</th><td class="AD_DTA ASTAT_MSGPB">$339,375.00</td></tr></tbody></table></div> </div><div class="AUCTION_ITEM_SPACER">&nbsp;</div><div tabindex="0" id="AITEM_1155459" aria-label="Auction Details" class="AUCTION_ITEM PREVIEW" aid="1155459" rem="0" isset="1"><div class="AUCTION_STATS"><div tabindex="0" class="ASTAT_MSGA ASTAT_LBL">Auction Status</div><div tabindex="0" class="ASTAT_MSGB Astat_DATA">Canceled per Order</div><div tabindex="0" class="ASTAT_MSGC ASTAT_LBL"></div> <div tabindex="0" class="ASTAT_MSGD Astat_DATA"></div><div tabindex="0" class="ASTAT_MSG_SOLDTO_Label ASTAT_LBL"></div><div tabindex="0" class="ASTAT_MSG_SOLDTO_MSG Astat_DATA"></div></div><div class="AUCTION_DETAILS"><table class="ad_tab" tabindex="0"><tbody><tr><th class="AD_LBL" scope="row">Auction Type:</th><td class="AD_DTA">FORECLOSURE</td></tr><tr><th class="AD_LBL" scope="row" aria-label="Case Number">Case #:</th><td class="AD_DTA"> 2015-005595-CA-01</td></tr><tr><th class="AD_LBL" scope="row">Final Judgment Amount:</th><td class="AD_DTA">$217,737.00</td></tr><tr><th class="AD_LBL" scope="row">Parcel ID:</th><td class="AD_DTA"> <a href="http://www.miamidade.gov/propertysearch/#/?folio=0140010210019" onclick="return showExitPopup();" target="_blank">01-4001-021-0019</a></td></tr><tr><th class="AD_LBL" scope="row">Property Address:</th><td class="AD_DTA">6261 TAMIAMI CANAL RD</td></tr><tr><th class="AD_LBL" scope="row"></th><td class="AD_DTA">MIAMI, FL- 33126</td></tr> <tr><th class="AD_LBL" scope="row">Assessed Value:</th><td class="AD_DTA">$153,080.00</td></tr><tr><th class="AD_LBL" scope="row">Plaintiff max bid:</th><td class="AD_DTA ASTAT_MSGPB">Hidden</td></tr></tbody></table></div> </div><div class="AUCTION_ITEM_SPACER">&nbsp;</div><div tabindex="0" id="AITEM_1151163" aria-label="Auction Details" class="AUCTION_ITEM PREVIEW" aid="1151163" rem="0" isset="1"><div class="AUCTION_STATS"><div tabindex="0" class="ASTAT_MSGA ASTAT_LBL">Auction Status</div><div tabindex="0" class="ASTAT_MSGB Astat_DATA">Canceled per Order</div><div tabindex="0" class="ASTAT_MSGC ASTAT_LBL"></div> <div tabindex="0" class="ASTAT_MSGD Astat_DATA"></div><div tabindex="0" class="ASTAT_MSG_SOLDTO_Label ASTAT_LBL"></div><div tabindex="0" class="ASTAT_MSG_SOLDTO_MSG Astat_DATA"></div></div><div class="AUCTION_DETAILS"><table class="ad_tab" tabindex="0"><tbody><tr><th class="AD_LBL" scope="row">Auction Type:</th><td class="AD_DTA">FORECLOSURE</td></tr><tr><th class="AD_LBL" scope="row" aria-label="Case Number">Case #:</th><td class="AD_DTA"> 2015-022277-CA-01</td></tr><tr><th class="AD_LBL" scope="row">Final Judgment Amount:</th><td class="AD_DTA">$374,062.43</td></tr><tr><th class="AD_LBL" scope="row">Parcel ID:</th><td class="AD_DTA"> <a href="http://www.miamidade.gov/propertysearch/#/?folio=3040280070030" onclick="return showExitPopup();" target="_blank">30-4028-007-0030</a></td></tr><tr><th class="AD_LBL" scope="row">Property Address:</th><td class="AD_DTA">6020 SW 92 AVE</td></tr><tr><th class="AD_LBL" scope="row"></th><td class="AD_DTA">MIAMI, FL- 33173</td></tr> <tr><th class="AD_LBL" scope="row">Assessed Value:</th><td class="AD_DTA">$208,500.00</td></tr><tr><th class="AD_LBL" scope="row">Plaintiff max bid:</th><td class="AD_DTA ASTAT_MSGPB">Hidden</td></tr></tbody></table></div> </div><div class="AUCTION_ITEM_SPACER">&nbsp;</div> 
</div>

此物品具有免费的照片、估价报告和所有权信息。拍卖状态根据破产拍卖类型取消:止赎案例#:2008-069895-CA-01最终判决金额:$567016.30地块ID:物业地址:618 W 65 DRHIALEAH,FL-33012评估值:$131793.00原告最高出价:$279450.00拍卖至2018年07月24日09:07上午ETAmount$198200.00出售给第三方投标人拍卖类型:止赎案件#:2012-007563-CA-01最终判决金额:$123600.66地块ID:物业地址:26711 SW 133,FL-33032评估值:$104378.00原告最高出价:$190539.81拍卖状态取消每个县拍卖类型:止赎案件#:2013-006996-CA-01最终判决金额:$1060190.67地块ID:物业地址:17321 SW 93 Aveplmetto BAY,FL-33157评估值:$276458.00原告最高出价:隐藏拍卖状态按订单取消拍卖类型:止赎案件#:2013-009405-CA-01最终判决金额:$161175.75地块ID:物业地址:13247阿斯旺RDOPA-LOCKA,FL-33054评估值:$88602.00原告最高出价:隐藏拍卖Sold07/24/2018上午9:14 ETAmount$390200.00出售给第三方出价拍卖类型:止赎案件#:2014-012973-CA-01最终判决金额:$255004.82地块ID:物业地址:3321 FROW Avemair,FL-33133评估值:$199959.00原告最高出价:$287550.00拍卖状态取消每个破产拍卖类型:止赎案件#:2014-020812-CA-01最终判决金额:$294642.58地块ID:物业地址:15900 SW 105 Avemiam,FL-33157评估价值:$153877.00原告最高出价:隐藏此物品有免费的照片、估价报告和所有权信息。拍卖状态按订单取消拍卖类型:止赎案件#:2015-002717-CA-01最终判决金额:$500378.48地块ID:物业地址:19522 NW 77 CTHIALEAH,FL-33015评估值:$273509.00原告最高出价:隐藏拍卖Sold07/24/2018上午9:20 ETAmount$373100.00出售给第三方投标人拍卖类型:止赎案件#:2015-004160-CA-01最终判决金额:$650255.11地块ID:物业地址:15495 SW 13 TERMIAMI,FL-33194评估值:$267671.00原告最高出价:$339375.00拍卖状态取消每个订单拍卖类型:止赎案件#:2015-005595-CA-01最终判决金额:$217737.00地块ID:物业地址:6261 TAMIAMI CANAL,FL-33126评估值:$153080.00原告最高出价:隐藏拍卖状态取消每个订单拍卖类型:止赎案例#:2015-022277-CA-01最终判决金额:$374062.43地块ID:物业地址:佛罗里达州阿维迈阿密西南92号6020-33173评估值:$208500.00原告最高出价:隐藏

我不知道在这一点上还有什么可以尝试的。我已经试着换了浏览器。我已经尝试增加JavaScriptTimeout。我试着使用nicelyresynchronizingajax控制器。我甚至会等到所有javascript都处理完毕。我想我缺少一些基本的理解。有人能告诉我吗

我们做了一个快速检查,这是jQuery 1.6.1的一个问题(请参阅)。因为这只发生在jQuery的最小化版本中,所以很难修复(最后必须在Rhino中完成)。欢迎提供任何帮助……

我们已经做了快速检查,这是jQuery 1.6.1的问题(请参阅)。因为这只发生在jQuery的最小化版本中,所以很难修复(最后必须在Rhino中完成)。欢迎任何帮助……

解决方法来了

String url = "https://miami-dade.realtaxdeed.com/index.cfm?zaction=AUCTION&Zmethod=PREVIEW&AUCTIONDATE=07/24/2018";

try (final WebClient webClient = new WebClient(BrowserVersion.FIREFOX_60)) {
    webClient.setWebConnection(new FalsifyingWebConnection(webClient) {
        @Override
        public WebResponse getResponse(WebRequest webRequest) throws IOException {
            if (webRequest.getUrl().getPath().endsWith("jquery-1.6.1.min.js")) {
                String jQuery = FileUtils.readFileToString(new File("jquery-1.6.1.js"));
                return createWebResponse(webRequest, jQuery, "application/javascript");
            }
            return super.getResponse(webRequest);
        }
    });

    HtmlPage previewItemsForSalePage = webClient.getPage(url);
    webClient.waitForBackgroundJavaScript(1000);

    System.out.println("----------------");
    System.out.println(previewItemsForSalePage.asText());
}
这里有一些注释:

  • 通过使用伪造WebConnection,如果愿意,您可以拦截和操纵请求和响应
  • 注意这一点,虽然语句没有超时,但许多页面都在使用某种心跳;你永远不会停止

至少在这里,我得到了与真实浏览器相同的内容。

解决方法来了

String url = "https://miami-dade.realtaxdeed.com/index.cfm?zaction=AUCTION&Zmethod=PREVIEW&AUCTIONDATE=07/24/2018";

try (final WebClient webClient = new WebClient(BrowserVersion.FIREFOX_60)) {
    webClient.setWebConnection(new FalsifyingWebConnection(webClient) {
        @Override
        public WebResponse getResponse(WebRequest webRequest) throws IOException {
            if (webRequest.getUrl().getPath().endsWith("jquery-1.6.1.min.js")) {
                String jQuery = FileUtils.readFileToString(new File("jquery-1.6.1.js"));
                return createWebResponse(webRequest, jQuery, "application/javascript");
            }
            return super.getResponse(webRequest);
        }
    });

    HtmlPage previewItemsForSalePage = webClient.getPage(url);
    webClient.waitForBackgroundJavaScript(1000);

    System.out.println("----------------");
    System.out.println(previewItemsForSalePage.asText());
}
这里有一些注释:

  • 通过使用伪造WebConnection,如果愿意,您可以拦截和操纵请求和响应
  • 注意这一点,虽然语句没有超时,但许多页面都在使用某种心跳;你永远不会停止

至少在这里,我得到了与真实浏览器相同的内容。

今天晚些时候将对此进行研究。在此期间,您可以尝试最新的快照,并且不要将setThroweExceptionOnScriptError设置为false。可能有一个js错误在ajax请求之前停止执行。另一个选择是使用像Charles这样的WebProxy,查看真实的wire对话(并将其与真实浏览器进行比较)。也许你可以看看是否所有的ajax请求都得到了处理。今天晚些时候我们会看一看。在此期间,您可以尝试最新的快照,并且不要将setThroweExceptionOnScriptError设置为false。可能有一个js错误在ajax请求之前停止执行。另一个选择是使用像Charles这样的WebProxy,查看真实的wire对话(并将其与真实浏览器进行比较)。也许你可以看看是否所有的ajax请求都得到了处理。谢谢你查看这个RBRi。从我所读到的来看,似乎没有任何可行的解决办法。我无法控制网页加载的js依赖项。这听起来很难在HtmlUnit中修复。您认为下载源代码并放置一个搜索jquery-1.6.1.min.js.的黑客程序是可行的吗?阻止它加载,并从cdn加载非精简版本?当然,这只会发生在当地。或者我应该放弃并使用另一个框架?很好,我认为有办法实现您的变通方法(使用本地jQuery)wi