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.

Unable to click on a particular cell in a table

b_nagapadminib_nagapadmini Members
edited December 2013 in Sahi - Open Source
Have tried using _click(_cell(0, _near(_cell("AEFQE_PartLvl1-1[1]")), _under(_tableHeader("Effetivity date"))));
but its clicking on column name Effectivity date insted of the cell under it.

Answers

  • Hi b_nagapadmini,

    Can you provide the sample page or access to it?
  • Its Like

    Name X1 X2 Effetivity date

    AEFQE_PartLvl1-1[1]

    b

    c

    Here the Table name is bodyTable

    I tried using _click(_cell(_table("bodyTable"), 1, 3)); It works fine.
    But I want to click with reference to name.
    So tried _click(_cell(0, _near(_cell("AEFQE_PartLvl1-1[1]")), _under(_tableHeader("Effetivity date"))));
    but this is not working.
  • maybe try to use an _in(_table) reference instead of an _under(_tableHeader) reference. Afaik _under is related to the elements offset, which might be different for the cell and the header if the cell is not in the first column.
Sign In or Register to comment.