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.

Get child element

AkshadaAkshada Members
edited November -1 in Sahi - Open Source
Hi All,

I could get a parentnode of an element (using parentNode()), but is there any way i could get a child element of a Div/Span

I need childrens of a div/span.Is there any function to get the same.

Thanks and Regards,
Akshada

Comments

  • sahi3sahi3 Members
    so cool
  • nagarnagar Members
    try with div(id).children[index]. (index = 0, 1 or any of your choice)
  • Hi nagar,

    A java code for this? As i am using java for automation

    Thanks and regards,
    Akshada
Sign In or Register to comment.