18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
How to verify an ElementStub containing <br/>
Hi, guys
I want to verify the div contain "<br/>"
<div class="metadataText">
hello,
<br/>
hello,
<br/>
gangli
</div>
How can I do this, I tried containHTML :
"assertTrue(browser.containsHTML(browser.div("/gangli/"), "<br/>"))"
but it can't work .
I want to verify the div contain "<br/>"
<div class="metadataText">
hello,
<br/>
hello,
<br/>
gangli
</div>
How can I do this, I tried containHTML :
"assertTrue(browser.containsHTML(browser.div("/gangli/"), "<br/>"))"
but it can't work .
Comments
Try with the following code,This might help you,
Regards,
Theeran.