18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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
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
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
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