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.

does sahi work with ajax?

newbie123newbie123 Members
edited November -1 in Sahi - Open Source
I've been using the Sahi Controller and noticed parts of the application that uses ajax, it lags for the longest time. When I turn off the manual proxy, the application works fine. Is there a solution for this? Any help is appreciated! Thanks!

Comments

  • ewaewa Members
    edited May 2008
    Have the same problem when application uses Ajax elements I get:
    Its happened when we have turn on sahi controller we don't have to run any test scripts.

    /** * Sahi - Web Automation and Test Tool * * Copyright 2006 V Narayan Raman * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ try { _sahi.sid = 'sahi_1211277285888'; _sahi.isWinOpen = true; _sahi.createCookie('sahisid', 'sahi_1211277285888'); _sahi._isPaused = false; _sahi._isPlaying = false; _sahi._isRecording = false; _sahi.hotKey = 'ALT'; _sahi.INTERVAL = 50; _sahi.ONERROR_INTERVAL = 1000; _sahi.MAX_RETRIES = 5; _sahi.SAHI_MAX_WAIT_FOR_LOAD = 200; _sahi.waitForLoad = _sahi.SAHI_MAX_WAIT_FOR_LOAD; _sahi.interval = _sahi.INTERVAL; _sahi.setWaitCondition(""); _sahi.setWaitConditionTime(-1); } catch(e) { }

    I also would like to know solution for this. Thanks
  • narayannarayan Administrators
    Which browser, what version? Does it happen for all sites?
  • Hi,
    We are using this fantastic tool for testing our application. We use it on IE6 browser.
    Our application uses AJAX, and unfortunately on those pages the script execution becomes very-very slow. Is there anything that needs to be changed to make the tool run at its zip-zap speed?

    Thanks.
  • narayannarayan Administrators
    Are you using the latest version of Sahi?
Sign In or Register to comment.