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 Cell content in SahiV3.5

lshankar_mcalshankar_mca Members
edited November -1 in Sahi - Open Source
Hi,

I am using SahiV3.5
In my application im using to get the cell content using with the following statement

_getText(_cell(0, _near(_cell("AP190AB01")), _under(_cell("File Name"))))
and its working fine.

From the java api i am accessing the cell contents using with the following statement

String PrintFile = browser.cell(0, browser.near(browser.cell("AP190B01")).under(browser.cell("File Name"))).getText();
System.out.println("Print File Name is:"+ PrintFile);

But i am getting Null Pointer exception

If i use the same statment in SahiV3 I am successfully getting the cell contents

Please help me in getting the cell conetens


Regards,
Shankar L

Comments

  • Hi Ishankar_mca,

    Can you try this:

    String PrintFile = browser.cell(0).near(browser.cell("AP190B01")).under(browser.cell("FileName")).getText();
    System.out.println("browser.Print File Name is:"+ PrintFile);

    Check if this solves your issue.

    Regards
    Sumitra
Sign In or Register to comment.