How to verify text 2 lines

how to verify text 2 line in 1 object?

example

<th valign="top" width="140">
  "Activation Date/"
<br>
<spen class="color999">Created Date</spen>
</th>

I try this can’t work

WebUI.verifyElementText(findTestObject(‘Search/text_column4’), ‘Activation Date/Created Date’)

Please show us how the test object Search/text_column4 is defined. How does its locator looks like?

2 Likes

You are missing the <br> tag in your solution.
This might work:
WebUI.verifyElementText(findTestObject(‘Search/text_column4’), ‘Activation Date/\nCreated Date’)

Assuming the test object is correct and it points to that element.

1 Like

thank you for all answer. This is the answer I need.

1 Like