Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch Sahi synchron status calls to asynchron calls #83

Open
toschneck opened this issue May 7, 2015 · 4 comments
Open

patch Sahi synchron status calls to asynchron calls #83

toschneck opened this issue May 7, 2015 · 4 comments

Comments

@toschneck
Copy link
Contributor

In sahi v4 it was necessary to implement a delay for syncron status calls from the browser side javascript part, see property sahi.proxy.requestDelayOnSikuliInput.delayTime.
Due to the upgrade to sahi5, see #7 , it may be possible, that this feature isn't needed any more.

TODO:

  • check if browser calls are still syncron
  • check problem with a example testcase
@toschneck toschneck added this to the rel-v1.1a milestone May 7, 2015
@toschneck toschneck changed the title check if hoock for syncron status calls is still necessary check if hook for syncron status calls is still necessary May 7, 2015
@toschneck
Copy link
Contributor Author

  • Try to overwrite the sendstatus function in Sahis javascript to avoid the synchron calls
  • Check that the Sahi dashboard also use this

@toschneck toschneck changed the title check if hook for syncron status calls is still necessary patch Sahi synchron status calls to asynchron calls Jun 8, 2016
@toschneck
Copy link
Contributor Author

Starting point for @Radon-bla:
file src/common/src/main/resources/org/sakuli/common/libs/js/internal/inject.js

var origSendToServer = Sahi.prototype.sendToServer;
Sahi.prototype.sendToServer = function (url, isAsync) {
    if (isAsync == undefined){
        isAsync = true;
        debugger;
    }
    return origSendToServer(url, isAsync);
}

@nferc
Copy link
Member

nferc commented Nov 15, 2017 via email

@toschneck
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants