2017-08-01 56 views
1

我試圖找出存在於具有角APP條形圖 以下SVG類是HTML塊無法使用量角器

<div class=" panel-body-style" _ngcontent-c1=""> 
    <table class="tabel bar-chart-table-fixed" _ngcontent-c1=""> 
    <tbody _ngcontent-c1=""> 
     <tr class="bar-chart-tr" _ngcontent-c1=""> 
     <td class="bar-label" _ngcontent-c1="">Assets ANR</td> 
     <td id="bankwide-actual-chart" _ngcontent-c1=""> 
      <indium-charts _ngcontent-c1="" style="padding: 0px"> 
      <div id="holder" class="style-scope indium-charts"> 
       <svg class="bullet-bar-circle style-scope indium-charts" width="198" height="6.930000000000001"> 
      </div> 
      </indium-charts> 
     </td> 
     </tr> 

請讓我知道如何才能能夠找到在SVG類定位SVG類量角器

+0

你已經嘗試過什麼解決方案? –

+0

@PrashanthSams:還沒有任何解決方案 –

+0

是我們看到的頁面嗎? incase可以幫助你 –

回答

1

問題是硒有處理SVG標籤的問題。 在處理SVG標籤時,你必須堅持只使用cssSelector。

如果你只有一個ID作爲持有人,然後用下面的CSS選擇器

#holder > svg 

對於快速移動到G和矩形

#holder > svg > g > rect 

希望它會幫助你

+0

我能夠找到SVG與$$(「svg.bullet-bar-circle.style-scope.indium-charts」),但我有g類裏面它

+1

已更新我的回答 –

+0

@shubam:我在chrome中獲得空數組,但是im imzi它完美地工作 –