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.

Unable to Maximize a pop up screen

vinayvinay Members
edited November -1 in Sahi - Open Source
Hi Narayan,

I am unable to do this using Sahi:

On click of a button, a pop up window is enabled and data is entered.
I need a maximize of the pop up window newly opened and also scrolling down event in the same window as data is entered.

I am able to close the pop up window, but needs a solution for maximize and scroll down of the same.

Please help me in this regard.

Regards,
Vinay

Comments

  • narayannarayan Administrators
    Hi Vinay,

    Javascript does not allow you to maximize a window because of browser restrictions.

    You can use window.resizeTo(length, width) and window.scrollBy(offsetX, offsetY);

    Example
    _popup("winName")._call(window.resizeTo(100, 200));
    _popup("winName")._call(window.scrollBy(0, 180));
    

    Regards,
    Narayan
  • You can use the "ctrl" and the mouse rolls down, then you can shrink down the window
  • vinayvinay Members
    Hi Narayan,

    I have used the commands suggested by you and are working fine fine !!!
    Thanks for your prompt reply and guidance.

    :)

    Best Regards,
    Vinay
This discussion has been closed.