2015-11-09 131 views
0
<div data-ng-transclude="" data-ng-style="{fontSize:fontSize}" layout="column" layout-align="center center" flex="25" data-fittext="" data-fittext-max="16" style="margin: 5px 10px 5px 1px; font-size: 5.7px;" class="ng-scope"> 
<span class="ng-scope">&nbsp;</span> 
<span style="color: #ebeded; font-size: 12px;" class="ng-binding ng-scope">UPCHARGE</span> 
</div> 

我想确定是否存在带文本“UPCHARGE”的span元素。如何用量角器识别元素。使用量角器无法找到有角度的JS元素

+0

你能请更新你尝试和失败的方式问题吗?另外,你有没有尝试过使用元素定位器?对于前 - 元素(by.xpath('// span [contains(text(),“UPCHARGE”)]'))'? –

+0

给它一个ID值,然后做by.id. – MBielski

回答

相关问题