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.

Window resize

lonely_girl01lonely_girl01 Members
edited May 2012 in Sahi - Open Source
Hi,

Anyone has tried resizing the browser window opened by Sahi?
I tried _call(window.resizeTo(1000,400)) in these browsers: FF, Chrome, but it's not working.


Thanks and regards.

Comments

  • globalwormingglobalworming Moderators
    Doesn't work here..

    Browser
    UserAgent : Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/11.10 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19
    Name : Google Chrome
    Version :5.0 (X11; Linux x86_64)
    Native XmlHTTPRequest : true
    Is Java enabled :true
    Is cookie enabled : true

    Operating System
    Name : Linux
    Version :3.0.0-19-generic
    Architecture : amd64
    Is process list available : true

    Java
    Java Installed Directory : /usr/lib/jvm/java-6-openjdk/jre
    JRE Version : 1.6.0_23
    Is keytool available : true


    Browser
    UserAgent :Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0
    Name :
    Mozilla Firefox
    Version : 5.0 (X11)
    Native XmlHTTPRequest : true
    Is Java enabled : true
    Is cookie enabled : true

    Operating System
    Name : Linux
    Version : 3.0.0-19-generic
    Architecture : amd64
    Is process list available : true

    Java
    Java Installed Directory : /usr/lib/jvm/java-6-openjdk/jre
    JRE Version : 1.6.0_23
    Is keytool available : true
  • Unfortunately, and fortunately, most modern browsers block window.resizeTo.

    Great if you're browsing, lousy if you're trying to automate a test at a certain browser size.
Sign In or Register to comment.