Equivalent Java code of Sahi script: _openWindow("http://www.google.com","defaultSahiPopup",[360,640]); -


i have modified "controller.mode=sahi" @ sahi.properties file "controller.mode=java" recording java code in sahi web test automation tool. want record tests using resolution of browser (for example, 360x640). during recording tests resolution of 360x640, did following:

  1. i filled "enter start url" text field http://www.google.com
  2. i checked "use resolution" check box , enter 360x640
  3. click go button

after recording found following code on sahi controller:

_openwindow("http://www.google.com","defaultsahipopup",[360,640]); _selectwindow("defaultsahipopup"); 

but unfortunately, above code not java code. sahi script think. need java code in sahi opening browser specific resolution. what's java code that?

with of srini tyto software (http://sahi.co.in/), have got solution. equivalent java code above sahi script below:

browser.execute("_sahi._openwindow('http://www.google.com','defaultsahipopup',[360,640]);"); browser.execute("_sahi._selectwindow('defaultsahipopup');"); 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -