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.

how to get following-sibling row

beesmanbeesman Members
edited November -1 in Sahi - Open Source
how to get following-sibling row

like _parentRow

Comments

  • narayannarayan Administrators
    On IE, use:
    _parentRow(_cell("Cell with id")).nextSibling

    On Firefox/Safari, use:
    _parentRow(_cell("Cell with id")).nextElementSibling

    You could write a browser function like this:
    <browser>
    function getNextSibling(el){
      return (_isIE() ?  el.nextSibling : el.nextElementSibling);
    }
    </browser>
    
    _click(getNextSibling(_parentRow(_cell("id"))));
    
  • am i a fool , i do a loop to find the nextSibling

    Thank you narayan, you are really a expert of javascript.
  • narayannarayan Administrators
    :D thanks!
This discussion has been closed.