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.

How to press Ctrl+Shift+X on a web page

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

I need to press Ctrl+Shift+X on a web page (body of the page).
Please help me in this.

Thanks in advance..

Regards,
Shankar L

Comments

  • SumitraSumitra Members
    Hi Shankar L,

    Use:

    _keyPress(_textbox("t2"),"X","CTRL+SHIFT"); to press Ctrl+Shift+X.

    Regards
    Sumitra
  • Hi Sumitra,

    Thanks for your help.

    But I need to execute that method using the java. But i did not see any keypress method in java.
    Please help me in this..

    Regards,
    Shankar L
  • SumitraSumitra Members
    Hi Shankar L,

    At present this feature is not available, you can expect this in the next release.

    Regards
    Sumitra
  • Thanks for updating sumitra.

    Is there any way to call the above step in my java code.
    like browser.execute("_keyPress(_div("mainDiv"), 'x', "CTRL|SHIFT"););

    Regards,
    Shankar L
  • narayannarayan Administrators
    Yes Shankar, you can do

    browser.execute("_sahi._keyPress(_sahi._div(\"mainDiv\"), 'x', \"CTRL|SHIFT\");");

    or

    browser.execute("_sahi._keyPress(_sahi._div('mainDiv'), 'x', 'CTRL|SHIFT');");

    Regards,
    Narayan
  • How to Press CTRL + ALT on Button:

    In my application after selecting radio button of CSV file format need press CTRL + ALT and at the same time need to click Run Report button.

    I have tried it following way :
    function funKeyPress()
    {
    _keyPress(_cell("Run Report"),CTRL+ALT);
    }

    Is there any other way to use _call to perform above action.
  • On the other hand, these motorcycle riders may be full-time funeral escorts, not peace officers at all. Such professional funeral service aides generally display compassion, skill, and a first-class knowledge of what is required to keep a dubay escorts funeral procession together and moving safely through the dense traffic of a metropolitan area. They are also the individuals who hand out the funeral stickers for cars permitted to be in the procession after the funeral service.
Sign In or Register to comment.