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.
Java script Framework to Java Framework
Hi all,
We have a project built on JavaScript framework and we might move to Java Framework for another project coming up. But we want to have a common framework across all the projects and i would request you all to put your thoughts on this.
Is there any way to convert existing javascript framework to java with Sahi, also i see that all API's does nt have equivalent Java conversion like for onScript error or continueOnError .
Kindly share your thoughts.
Thanks
Bhavitha
We have a project built on JavaScript framework and we might move to Java Framework for another project coming up. But we want to have a common framework across all the projects and i would request you all to put your thoughts on this.
Is there any way to convert existing javascript framework to java with Sahi, also i see that all API's does nt have equivalent Java conversion like for onScript error or continueOnError .
Kindly share your thoughts.
Thanks
Bhavitha
This discussion has been closed.
Answers
May i please ask you why is there a requirement to shift from javascript framework to java framework? You will have to convert the javascript framework to java framework manually. So if you have already written lots of script, it will be like doing the same work again. About your other question, you can use all the existing APIs in the Java framework. onScriptError and continueOnError are callback functions which are exclusive to javascript and not available in Java as of now. If you dont find some other API in Java like you mentioned above, you can call the JavaScript API itself using browser.execute API of Sahi Java framework.
Regards.
Thanks for the inputs, idea of Java came out as other teams are working on automation with Java and organisation wanted a centralised framework and discussions are still going on.
And yes, we do have lots of scripts and this entire thing can become another project as you have mentioned
Thank you,
Bhavitha
I will be closing this discussion now.
Regards.