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.

Equivalent Javacode of SahiScript:_openWindow(“http://www.google.com”,“defaultSahiPopup”,[360,640]);

riponalwasimriponalwasim Members
edited May 2013 in Sahi Pro
I have modified "controller.mode=sahi" at sahi.properties file as "controller.mode=java" for recording Java code in Sahi Web Test Automation Tool. I want to record my tests using with Resolution of browser (for example, 360x640). During recording the tests with resolution of 360x640, I did the followings:

1. I filled up "Enter start URL" text field as http://www.google.com
2. I checked "Use with Resolution" check box and enter 360x640
3. Click Go button

After recording I found the following code on Sahi Controller:

_openWindow("http://www.google.com","defaultSahiPopup",[360,640]); _selectWindow("defaultSahiPopup");

But unfortunately, the above code is not Java code. It is Sahi script I think. I need Java code in Sahi for opening the browser with the specific Resolution. What's the equivalent java code for that?
Sign In or Register to comment.