18 January 2026:


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.

tower120tower120 Members
edited November -1 in Sahi - Open Source
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.

Comments

  • narayannarayan Administrators
    Hi,

    The Sahi parser requires that a statement be in a single line. We may fix this in future versions.

    Regards,
    Narayan
This discussion has been closed.