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.

Identifying link in table cell

LongbowLongbow Members
edited November -1 in Sahi - Open Source
Let me draw a little picture for start :)
Provider1  Provider1Address  xRemove
Provider2  Provider2Address  xRemove
Provider3  Provider3Address  xRemove
I have a table (with six columns actually, above picture is a sample) and in last (sixth) column there is a 'Remove' link. Table cell can be accessed by
_cell(_table("ProviderGrid"), 3, 6)
What I'd like to do, is reach the link (invoke _click() method) in mentioned cell. How can I achieve this?

Comments

  • narayannarayan Administrators
    edited December 2007
    Suppose you want to remove Provider2

    Identify the row containing Provider2 using

    _row(_table("ProviderGrid"), "Provider2")

    Get its rowIndex and use it to access the related xRemove
    _click(_link("xRemove[" + _row(_table("ProviderGrid"), "Provider2").rowIndex + "]"));
    
  • That solved the problem.

    Thanks!
Sign In or Register to comment.