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.
Problem with reading values from second row of the grid
Hi All,
I have generated one script which store values in variables, go on another tab where we have have one panel which is hidden, If I click on (+) image it get expanded and show the grid having some data (rows/columns) I tried to do it with following script it works fine for the first row (0,5) , but it doesn't read the second column data.
my script is something like this
_click(_cell(_table(33), 2, 0));
_click(_cell("ctl00_ContentPlaceHolder1_UltraWebTab1td2"));
_click(_image(235));
var $SW_Forecast_ByProd;
_set($SW_Forecast_ByProd,_getText(_byId("ctl00xContentPlaceHolder1xUltraWebTab1xxctl2xdgSeatForeCastByProduct_rc_0_0_5")));
_alert($SW_Forecast_ByProd);
var $SW_Forecast_ByProd1;
_set($SW_Forecast_ByProd1,_getText(_byId("ctl00xContentPlaceHolder1xUltraWebTab1xxctl2xdgSeatForeCastByProduct_rc_0_1_5")));
_alert($SW_Forecast_ByProd1);
var $SW_Forecast_ByProd2;
_set($SW_Forecast_ByProd2,_getText(_byId("ctl00xContentPlaceHolder1xUltraWebTab1xxctl2xdgSeatForeCastByProduct_rc_0_2_5")));
_alert($SW_Forecast_ByProd2);
Can anyone help me to resolve this problem please?
Thanks & Regards
Ramesh
I have generated one script which store values in variables, go on another tab where we have have one panel which is hidden, If I click on (+) image it get expanded and show the grid having some data (rows/columns) I tried to do it with following script it works fine for the first row (0,5) , but it doesn't read the second column data.
my script is something like this
_click(_cell(_table(33), 2, 0));
_click(_cell("ctl00_ContentPlaceHolder1_UltraWebTab1td2"));
_click(_image(235));
var $SW_Forecast_ByProd;
_set($SW_Forecast_ByProd,_getText(_byId("ctl00xContentPlaceHolder1xUltraWebTab1xxctl2xdgSeatForeCastByProduct_rc_0_0_5")));
_alert($SW_Forecast_ByProd);
var $SW_Forecast_ByProd1;
_set($SW_Forecast_ByProd1,_getText(_byId("ctl00xContentPlaceHolder1xUltraWebTab1xxctl2xdgSeatForeCastByProduct_rc_0_1_5")));
_alert($SW_Forecast_ByProd1);
var $SW_Forecast_ByProd2;
_set($SW_Forecast_ByProd2,_getText(_byId("ctl00xContentPlaceHolder1xUltraWebTab1xxctl2xdgSeatForeCastByProduct_rc_0_2_5")));
_alert($SW_Forecast_ByProd2);
Can anyone help me to resolve this problem please?
Thanks & Regards
Ramesh