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.

Right click operations dont work always

shamsham Members
edited November -1 in Sahi - Open Source
Hi All,

I have a scenario like this.
var $IP = "10.0.0.20"
var $sharevalID = "Add Share";
_rightClick(_span($IP), _click(_span($sharevalID)));

here when i execute these lines directly in the SAHI controller it works as expected, but when i try to paste this into a script, I notice that the controller hangs at this step and does not proceed.
Later it quits saying "Sahi could not complete in 150Sec".

Any ideas please?

Comments

  • Hi Sham,

    Rightclick can be performed if an event is attached to it and should be an application specific.

    Are able to perform right clik on span?

    Check if you are getting any error on Sahi console? If so then post it here.

    Regards
    Smrithi
  • Hi sham,

    I doubt about what you are trying to do? Usually, click and right click are two different actions and you cannot execute both simultaneously.

    Try with something like,

    _click(_span($sharevalID));
    _rightClick(_span($IP);

    or

    _rightClick(_span($IP);
    _click(_span($sharevalID));

    This might also give the same result.

    Regards,
    Theeran.
Sign In or Register to comment.