History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SRC-488
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Tarun
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Selenium Remote Control

For ease of dealing with pop up window.

Created: 13/Jun/08 06:02 AM   Updated: 12/Aug/08 05:35 PM
Component/s: Client Driver - Java
Affects Version/s: 1.0 beta 1
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: OS - Windows XP


 Description  « Hide
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




 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.