捕获JavaScript函数的输出

时间:2013-12-25 04:30:56

标签: javascript html css dom jsoup

使用C#,PowerShell和Jsoup我试图捕获最后显示的百分比,99.96%。在IE中使用DOM浏览器,这就是我所看到的:

<!DOCTYPE html>

<html>
  <body id="website#22;page">
   <div id="wrap">
     <script type="text/javascript">...</script>
     <div class="topRow" id="iTopRow">...</div>
     <div id="header">...</div>
     <div id="content">
       <div class="paddingfix">
         <script type="text.javascript">...</script>
         <div class="toppaddingfix"></div>
         <div title="Summary Percentage"
         class="overallPercentage">
           <div>
             <div style="padding-bottom: 12px;">
               <div class="textRegionContainer" id="iTextRegion_D14">
                 <div class="position" style="display: none;"<>/div>
                 <div class="status" style="display: none;">loaded</div>
                 <div class="textRegionPlaceHolder">
                   <p class="textRegionTitle">
                     99.96 %
                   </p>
                 </div>
               </div>
            </div> 

然而,当以编程方式尝试捕获它时,我会收到:

<div id="iTextRegion_DR14" class="textRegionContainer">
    <script type="text/javascript">
        $(document).ready(function() {
            var client = new wLive.Service.Client(false);
            var textRegion = new wLive.Controls.TextRegion(
                'Tools',
                'AppServerOutDetails3',
                'DR14',
                '#iTextRegion_DR14',
                {"id":"DR14","data":null,"paragraphs":["<bindingref       
                name=\"Reliability\" \/> %\u000d\u000a        "],"style":0},
               client);
            wLive.Controls.DataBridge.registerDataRegion('#iDataBridge', textRegion);
        });
    </script>
</div>

如何以编程方式捕获该百分比,以便我可以让另一个程序评估它的值?

0 个答案:

没有答案