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 on certain coordinates

shirleyshirley Members
edited November -1 in Sahi - Open Source
Hi,

I have a screen (canvas) on which i need to right click on certain coordinates.
Steps:
1. Right click on a certain coordinate.
2. Select an item from Right click context menu.

Could you give me the exact syntax for the same?

Comments

  • Hi shirley,

    You can perform right click on an element only if an event is attached to it.

    Here is an example:
    _navigateTo("http://www.zkoss.org/zkdemo/popup/pop-ups");
    _rightClick(_xy(_textarea("/90/"),5,5)); //clicks inside the textarea, 5px from the left and 5 pixels from the top.
    _click(_link("ClearAll"));
    

    Also, have a look at : http://sahi.co.in/forums/viewtopic.php?id=2784

    Let me know if you face any problem.

    Regards
    Sumitra
Sign In or Register to comment.