从UI上的BuildLog或UI中的Text获取值

时间:2014-12-10 09:02:44

标签: selenium-webdriver

任何人都可以帮助我,从UI获取值,这是一个日志,所以他们没有静态的Web元素,

我想获得价值观' 0'和' 800'来自日志的差异值,通过查看文本' CIA_StartTansportCost'

<div id="node_13646" class="leaf ch_13642 ch_13596 ch_13245">    
   <div id="msg_13646" class="msg l4">    
     <u id="ts_13646" class="ts">    
       <u class="ts_in">[12:48:59]</u>    
     </u>    
     <i class="mark error_msg actual status_err">    
       <i class="parent">[CIA_StartTransportCost] </i>    
       800    
     </i>    
</div>    
</div>    
<div id="node_13647" class="leaf ch_13642 ch_13596 ch_13245">    
<div id="msg_13647" class="msg l4">    
  <u id="ts_13647" class="ts">    
    <u class="ts_in">[12:48:59]</u>    
  </u>    
  <i class="mark error_msg stdout multiline ">    
    <i class="parent">[CIA_StartTransportCost] </i>    
    [Test Output] Running: "CIA_StartTransportCost", Expected Result: 0, Actual      Result: 800, Difference: 80000.000000%, Test Threshold : 0.99, Test Result : FAIL, ExecutionSuccess : True RowsAffected: 1
    </i>    
  </div>    
</div>    

0 个答案:

没有答案