How to verify text 2 lines

how to verify text 2 line in 1 object?


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

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?


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