I want to see if the text contained in a span which itself is contained in a div contains certain text. This is the HTML
<div class="funds">
<span>banking</span>
<span class="m-l-sm">
<b>EUR 1,000</b>
</span><!--anchor-->
</div>
I want to check if <span class="m-l-sm">
contains 'EUR'
One way I tried to do this (among several others) is:
var checkFunds = element(by.id("m-l-sm"))
if(checkFunds.getText().toContain('EUR'&'GBP'));
//do something
I get an error saying .toContain() is not a function. I'm at a bit of a loss as to how to proceed. Thanks
via James
No comments:
Post a Comment