18 January 2026:


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.

Issue about this Dom structure: <span><span>Text</span></span>

ziscloudziscloud Members
edited November -1 in Sahi - Open Source
Hi Sahi Team,

When we using sahi to test our web application, we met this Dom structure:
<span><span>Text</span></span>

sahi will identify the element to be: _span("Text[0]") and _span("Text[1]") also, and _span("Text[1]") is preferred in sahi.

obviously, the span tag outside is unnecessary and useless, it is no need to identify it.

Yes, we could ask the developer to remove the span tag, but it is infeasible in most situation.

To be more meaningful, this element should be identified only once, _span("Text[0]") is more appropriate for this Dom structure.

Can you consider about this?

Thanks a lot!
Sign In or Register to comment.