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.
Sahi Ruby 1.3.0 and Sahi 6.0.1 incompatibility on fetch()
until Sahi 6.0.0, fetch is define in sahi ruby 130 :
def fetch(expression)
key = "___lastValue___" + Time.now.getutc.to_s;
execute_step("_sahi.setServerVarPlain('"+key+"', " + expression + ")")
return check_nil(exec_command("getVariable", {"key" => key}))
end
But, in Sahi 6.0.1 "setServerVarPlain" was rename in setServerVarForFetchPlain in concat.js
So, librairy Ruby Sahi is not compatible with Sahi 6.0.1
fetch must become :
def fetch(expression)
key = "___lastValue___" + Time.now.getutc.to_s;
execute_step("_sahi.setServerVarForFetchPlain('"+key+"', " + expression + ")")
return check_nil(exec_command("getVariable", {"key" => key}))
end
def fetch(expression)
key = "___lastValue___" + Time.now.getutc.to_s;
execute_step("_sahi.setServerVarPlain('"+key+"', " + expression + ")")
return check_nil(exec_command("getVariable", {"key" => key}))
end
But, in Sahi 6.0.1 "setServerVarPlain" was rename in setServerVarForFetchPlain in concat.js
So, librairy Ruby Sahi is not compatible with Sahi 6.0.1
fetch must become :
def fetch(expression)
key = "___lastValue___" + Time.now.getutc.to_s;
execute_step("_sahi.setServerVarForFetchPlain('"+key+"', " + expression + ")")
return check_nil(exec_command("getVariable", {"key" => key}))
end