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.

Application and SAHI control get closed while moving on another TAB

RameshkRameshk Members
edited November -1 in Sahi - Open Source
Hi All,


I have generated a small script which store some numbers in variables and go to another tab to compare these numbers there.

But, As soon as it click on another TAB the application and SAHI control get closed, it doesn't give any error message.

My script is smoething like this

_setSelected(_select("ctl00\$ContentPlaceHolder1\$UltraWebTab1\$_ctl1\$ddlMonth"), "All 3 Months Plus Total");
_click(_radio("ctl00\$ContentPlaceHolder1\$UltraWebTab1\$_ctl1\$ForecastType"));
_click(_image("ctl00ContentPlaceHolder1UltraWebTab1ctl1panNew_header_img"));
var $Tot_SW_UnAdj;
_set($Tot_SW_UnAdj,_getText(_byId("ctl00xContentPlaceHolder1xUltraWebTab1xxctl1xuwgManagersAdjust_f_0_13")));
_alert($Tot_SW_UnAdj);
var $Tot_SIM_UnAdj;
_set($Tot_SIM_UnAdj,_getText(_byId("ctl00xContentPlaceHolder1xUltraWebTab1xxctl1xuwgManagersAdjust_f_0_14")));
_alert($Tot_SIM_UnAdj);
var $Tot_PDM_UnAdj;
_set($Tot_PDM_UnAdj,_getText(_byId("ctl00xContentPlaceHolder1xUltraWebTab1xxctl1xuwgManagersAdjust_f_0_15")));
_alert($Tot_PDM_UnAdj);
var $Tot_3DVia_UnAdj;
_set($Tot_3DVia_UnAdj,_getText(_byId("ctl00xContentPlaceHolder1xUltraWebTab1xxctl1xuwgManagersAdjust_f_0_16")));
_alert($Tot_3DVia_UnAdj);
_click(_cell("ctl00_ContentPlaceHolder1_UltraWebTab1td2"));

Till _alert($Tot_3DVia_UnAdj); it works fine, but as soon as it click on Tab the Application and SAHI control get closed.

Can anyone help me to resolve this problem please?


Thanks & Regards
Rameshk

Comments

  • narayannarayan Administrators
    Ramesh,

    Which browser are you getting this error on?
    Can you check that _cell("ctl00_ContentPlaceHolder1_UltraWebTab1td2") is the correct tab by highlighting it in the controller?
    What is the correct behavior when you click that tab?

    Regards,
    Narayan
  • RameshkRameshk Members
    Hi Narayan,


    Thanks for your reply,


    I am facing this problem on IE 7 while running this script. I checked that _cell("ctl00_ContentPlaceHolder1_UltraWebTab1td2") tab by highlighting it in the Control and it is correct.

    When I click on this tab then it redirect me on the tab.


    Thanks Regards
    Ramesh
Sign In or Register to comment.