开发者

Multiple Window problem in SELENIUM IDE

开发者 https://www.devze.com 2023-03-09 03:18 出处:网络
HI, I am using Selenium IDE for recording test cases. In a particular test case, I need to work on two windows simultaneously but the s开发者_StackOverflow中文版elenium IDE does not record when I ope

HI,

I am using Selenium IDE for recording test cases. In a particular test case, I need to work on two windows simultaneously but the s开发者_StackOverflow中文版elenium IDE does not record when I open a new tab and work on it. Can anyone give me suggestions on this?

awaiting replies !


You can try that programmatically as suggested here How to close a tab and open a new tab using Selenium RC

You can open the other window (considered popup by selenium i guess) like so

selenium.openWindow("http://example.com/","dev");
selenium.selectWindow("dev");
selenium.open("/");

and then you switch b/w the windows . to go back to original one you will have to do

selenium.selectWindow(null);
0

精彩评论

暂无评论...
验证码 换一张
取 消