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.
Convert api statement to java statement
Hi,
your product is very best solution of engineering. I have a question. There is a java method in your library that convert a api statement to java statement?
For example
I have _navigateto("url1") and i want browser.navigateTo("url1");
There is a method that have this firm:
public string TranslateStat(string _apiStatement)
{ ... magic ....
return _javaStatement; }
With this i want:
string _apiCmd = "_navigateto(""url1"")";
string _javaCmd = TranslateStat(_apiCmd);
//value of _javaCmd is browser.navigateTo("url1")
Thank you for your response and your time and excuse me for my English
your product is very best solution of engineering. I have a question. There is a java method in your library that convert a api statement to java statement?
For example
I have _navigateto("url1") and i want browser.navigateTo("url1");
There is a method that have this firm:
public string TranslateStat(string _apiStatement)
{ ... magic ....
return _javaStatement; }
With this i want:
string _apiCmd = "_navigateto(""url1"")";
string _javaCmd = TranslateStat(_apiCmd);
//value of _javaCmd is browser.navigateTo("url1")
Thank you for your response and your time and excuse me for my English
Comments
In Which code ( JAVASCRIPT or JAVA ) u r going to use in SAHI?
I think u want use both, Isn't it?
Regards,
Azhaguvel.A