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.
multiline expressions.
Hi!
I had interesting problem. In sahi IDE I can run this:
_click(
_byClassName( /.*editImage rotate/, "div",
_in( _div("imageEditorControls") )
)
);
Everything ok, no problems. BUT, when I put those lines inside my .sah script I got syntax error.
When I reformat string to something like this:
click(_byClassName( /.*editImage rotate/, "div", _in( _div("imageEditorControls") ) ));
It start work.
I had interesting problem. In sahi IDE I can run this:
_click(
_byClassName( /.*editImage rotate/, "div",
_in( _div("imageEditorControls") )
)
);
Everything ok, no problems. BUT, when I put those lines inside my .sah script I got syntax error.
When I reformat string to something like this:
click(_byClassName( /.*editImage rotate/, "div", _in( _div("imageEditorControls") ) ));
It start work.
This discussion has been closed.
Comments
The Sahi parser requires that a statement be in a single line. We may fix this in future versions.
Regards,
Narayan