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.

rightclick

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

how to click rightclick on link and select an option from options

after rightclick we will get pop up and from that pop up options i wanna select one option

please let me know the solutions if any one knows

Thanks in advance

Comments

  • Hi siva,

    Rightclick can be performed only if an event is attached to it.

    Here is an example:

    http://www.zkoss.org/zkdemo/menu/context_menu

    Here you can Rightclick on the image an you can select the option after the pop up.

    _rightClick(_image("pVAQm"));
    _mouseOver(_link("Group"));
    _mouseOver(_link("Add to..."));

    Let me know if this solves your issue.

    Regards
    Sumitra
  • sivasiva Members
    edited August 2011
    Dear Sumitra,

    thank you very much for your response

    the give code is working fine for the give site which was given by you, but when i use the same logic for link instead of image it is not working.

    please check for this site

    http://www.blogger.com/profile/00367401472845506765

    in the above url please check for the "Email" link

    here i want the script like right click on "Email" link and i wanna select "copy email address" option

    and i want to paste that copied email into one text file

    kindly explain/ provide me the script for the above scenario

    once again thanks for your quick reply, thank you very much
  • Hi siva,

    This is how _rightClick() API works:

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

    The example which you gave is a browser specific and "Email" does not have any

    event attached to it so you cannot perform rightclick on Email.

    Regards
    Sumitra
  • sivasiva Members
    edited August 2011
    Dear Sumitra,

    thank you for your reply

    is there any alternate solution in sahi to select browser pop up option which i mentioned in above post

    please let me know if there is any alternate in sahi
  • Hi Siva,

    There is no other alternative as of now.

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

    Regards
    Sumitra
  • Hi Sumitra,

    thank you for your reply
This discussion has been closed.