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.
Array / _include questions...
Hey everybody,
So I am working with array's in Sahi...
I take a top level file with one main include, that has a bunch of separate includes with in it, and this runs first.
In the main script i create an array, then i take an element and assign that a new array with 2 elements in it. This way when i alert on the first array element, it returns the secondary array with 2 elements.
Now if i move this back one layer into the global include, it stops working...and instead of returning the secondary array with 2 elements, it just alerts with [object, object]....
Can someone explain why this happens?!
Example:
var $bar = [];
$bar[1] = new Array ("12345678910","one fish, two fish, red fish: blue fish");
So I am working with array's in Sahi...
I take a top level file with one main include, that has a bunch of separate includes with in it, and this runs first.
In the main script i create an array, then i take an element and assign that a new array with 2 elements in it. This way when i alert on the first array element, it returns the secondary array with 2 elements.
Now if i move this back one layer into the global include, it stops working...and instead of returning the secondary array with 2 elements, it just alerts with [object, object]....
Can someone explain why this happens?!
Example:
var $bar = [];
$bar[1] = new Array ("12345678910","one fish, two fish, red fish: blue fish");
Answers
Can you provide the script that is not working for you?
Regards.