Reputation: 1
<div>
<span tabindex="0" style="font-weight:bold;font-size:28pt;">xyz</span>
</div>
how to get "xyz" text from span, I tried css but protractor did not identify it
Upvotes: 0
Views: 165
Reputation: 1199
First of all your selector should look like:
div > span
You don't have [...] > td > span
.
And then .getText() on that element.
Upvotes: 1