2017-08-01 97 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它完美地工作 –