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.
Chrome 36.0.1917.0 - Sahi not waiting for Postback before continuing.
Hi
We have been using Sahi Pro with Chrome for 2 years now, sahi has never experienced this problem before but since Chrome updated the new version the scripts fall over when we get to any Post Backs on our sites.
We did have a similar issue with IE a while back and to fix it we had to add a generic _wait to all searches, but this isnt the same problem in Chrome.
Does anyone have similar experiences, Any help would be great as our website uses Mainly Automated Testing and we are due to release very soon.
Thanks
Hayley
We have been using Sahi Pro with Chrome for 2 years now, sahi has never experienced this problem before but since Chrome updated the new version the scripts fall over when we get to any Post Backs on our sites.
We did have a similar issue with IE a while back and to fix it we had to add a generic _wait to all searches, but this isnt the same problem in Chrome.
Does anyone have similar experiences, Any help would be great as our website uses Mainly Automated Testing and we are due to release very soon.
Thanks
Hayley
Best Answer
-
Hi Haylz1922,
Can you please email support at sahi.co.in with your issue, so that the support team can track and respond to you? We may need to set up a GoToMeeting session to diagnose further.
Thanks,
Narayan
Answers
<select name="ctl00$ctl00$ContentPlaceHolder1$DirectoryContentPlaceHolder$ddlUsersFilterByUsername" onchange="javascript:setTimeout('__doPostBack(\'ctl00$ctl00$ContentPlaceHolder1$DirectoryContentPlaceHolder$ddlUsersFilterByUsername\',\'\')', 0)" id="ctl00_ctl00_ContentPlaceHolder1_DirectoryContentPlaceHolder_ddlUsersFilterByUsername">
<option value="">Hide</option>
<option selected="selected" value="All">All</option>
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
<option value="D">D</option>
<option value="E">E</option>
<option value="F">F</option>
<option value="G">G</option>
<option value="H">H</option>
<option value="I">I</option>
<option value="J">J</option>
<option value="K">K</option>
<option value="L">L</option>
<option value="M">M</option>
<option value="N">N</option>
<option value="O">O</option>
<option value="P">P</option>
<option value="Q">Q</option>
<option value="R">R</option>
<option value="S">S</option>
<option value="T">T</option>
<option value="V">V</option>
<option value="W">W</option>
<option value="X">X</option>
<option value="Y">Y</option>
<option value="Z">Z</option>
</select>
Then
<a id="ctl00_ctl00_ContentPlaceHolder1_DirectoryContentPlaceHolder_pgrAgencyUsers_cmdPageButton1" href='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ctl00$ContentPlaceHolder1$DirectoryContentPlaceHolder$pgrAgencyUsers$cmdPageButton1", "", true, "", "", false, true))'>2</a>
Sahi Script
_click(_link("Edit"));
_setSelected(_select("ctl00$ctl00$ContentPlaceHolder1$DirectoryContentPlaceHolder$ddlUsersFilterByUsername"), "A");
_click(_link("2"));
// SCRIPTS FAIL HERE AS PAGE 2 TAKES A WHILE TO LOAD AND SCRIPTS ASSUME THIS IS ALREADY RETURNED.
var $isEdit = _getText(_link(6, _near(_cell("AutomatedTest"))));
if ($isEdit == "Edit")
{
_click(_link(6, _near(_cell("AutomatedTest"))));
_highlight(_checkbox(0, _near(_label("ShoppingBasketUser[11]"))));
_set($SBenabled, _checkbox(0, _near(_label("ShoppingBasketUser[11]"))).checked);
if ($SBenabled)
{
_click(_checkbox(0, _near(_label("ShoppingBasketUser[11]"))));
_assertFalse(_checkbox(0, _near(_label("ShoppingBasketUser[11]"))).checked);
_click(_submit("ctl00$ctl00$ContentPlaceHolder1$DirectoryContentPlaceHolder$lstAgencyUsers$ctrl11$uclUserApplicationRoles$cmdSaveRoles"));
}
_set($BasketPriceAdmin, _checkbox(0, _near(_label("BasketPriceAdmin[11]"))).checked);
if ($BasketPriceAdmin)
{
_click(_checkbox(0, _near(_label("BasketPriceAdmin[11]"))));
_assertFalse(_checkbox(0, _near(_label("BasketPriceAdmin[11]"))).checked);
_click(_submit("ctl00$ctl00$ContentPlaceHolder1$DirectoryContentPlaceHolder$lstAgencyUsers$ctrl11$uclUserApplicationRoles$cmdSaveRoles"));
}
}