naruto
naruto

Reputation: 1

how to get "xyz" text from span, I tried css but protractor did not identify it

<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

Answers (1)

Kacper
Kacper

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

Related Questions