V
V
vadik_kmv2018-02-10 11:50:59
Software testing
vadik_kmv, 2018-02-10 11:50:59

How to escape line breaks inside a tag?

Colleagues, hello!
There is an HTML code:

<td><div>

Ожидание работы

</div>
</td>

Inside the div there are newlines, both at the beginning and at the end, respectively, such an XPath expression cannot pull out the text:
"//td[.//div[contains(text(), 'Waiting for work')]]"
How can such a problem be solved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kn0ckn0ck, 2018-02-10
@kn0ckn0ck

The described problem does not exist. The contains function doesn't care about newlines. Also, this expression is fully evaluated.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question