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:
- i filled "enter start url" text field http://www.google.com
- i checked "use resolution" check box , enter 360x640
- 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
Post a Comment