Hi all,
First and foremost I must thank all of you for putting in effort in bringing a tool which can dare commercial tools.
The suggestion which I have here is regarding how Selenium RC deals with pop up window (or launching child web pages.) I/We often see questions being raised about how pop up window is dealt in Selenium.
I came across WatiN of late and found I it deals with pop up window as following (I have added comments to make it more comprehensible) -
// Main application.
IE ie = new IE("
http://igyan");
// launching child window and attaching it to main window.
ie.Link(Find.ByUrl("
http://servicedesk:9090/")).Click();
IE iepopup_1 = IE.AttachToIE(Find.ByUrl("
http://servicedesk:9090/"));
// processing in child window
iepopup_1.TextField(Find.ByName("j_username")).TypeText("testuser");
iepopup_1.TextField(Find.ByName("j_password")).TypeText("Password");
iepopup_1.Button(Find.ByName("loginButton")).Click();
// Close the child winodw.
iepopup_1.Close();
// continuing with the main window.
ie.Link(Find.ByName("QUALITY")).Click();
Here beauty is in how reference of Child is attached to IE and then further processing is done over child window. It is great if we could have some sort of feasibility in Selenium RC also and would not force us to find windowid( which I rarely find) etc.
I faced a similar problem of late and posted it here but have not seen any viable solution -
http://clearspace.openqa.org/message/45015#45015
Thanks in advance.
Regards,
Tarun K