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 click F11 key by using _keyPress() function

sivasiva Members
edited November -1 in Sahi - Open Source
Dear Sumitra/ Narayan/ All,

could you please tell me how to press F11 key by using _keyPress() method

Thank in advance


Thanks & Regards,
Sivakumar S

Comments

  • SumitraSumitra Members
    Hi Siva,

    It is not possible to press F11 key using _keyPress() in Sahi. However you can start IE, firefox and Chrome in full screen mode at startup:

    For IE:

    Open browser_types.xml by navigating to <Sahi>/userdata/config/browser_types.xml.

    Change <options>-noframemerging</options> to
    <options>-noframemerging -k</options>

    Save and Restart Sahi.

    For Firefox you will need to have the addon and then use it.

    https://addons.mozilla.org/en-US/firefox/addon/full-fullscreen/

    For Chrome:
    Change

    <options>--user-data-dir=$userDir\browser\chrome\profiles\sahi$threadNo --proxy-server=localhost:9999 --disable-popup-blocking --kiosk</options>

    instead of

    <options>--user-data-dir=$userDir\browser\chrome\profiles\sahi$threadNo --proxy-server=localhost:9999 --disable-popup-blocking</options>

    For more details for Chrome follow this:

    http://www.techiecorner.com/1941/how-to-auto-start-chrome-in-full-screen-mode-f11-everytime/

    Regards
    Sumitra
  • sivasiva Members
    Dear Sumitra,

    thank you very much for your information


    Thanks & Regards,
    Siva
This discussion has been closed.