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

Key: WET-5
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: shruthi
Reporter: Raghu Venkataramana
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
WET

Cannot attach to browser using multiple parameters

Created: 30/Mar/06 02:40 PM   Updated: 12/Jul/07 07:45 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
Stephanie Mayfield writes:

I have two browser windows that have the same title and
the same URL, but a different user is logged into each
window. Both windows need to be active at the same
time. Whenever I try to switch between windows,
WET/Watir gets confused and only the second window's
processing is successful.

So I have something like this:

Create a browser for user1
Log in User 1
Create a browser for user2
Log in user 2
If I refer to user1 here, nothing really happens. Visually,
the window switches and appears to do what it's told.
But at the end of the processing, only the commands
happening on user2's browser actually occur.
And both browsers display what should only be
displayed for user 2's browser.

I was going to attempt to use attach to be sure I'm using
the window I want to use, however both browsers have
the same title and the same URL. Is there some other
method to indicate which browser window you wish to
attach to?

Currently it is not possible to say:
Browser("title:=xyz", "index:=1")

 All   Comments   Work Log   Change History      Sort Order:
Sathya Shankar - 01/Apr/06 09:24 AM
I think we should be able to support like some parameters like time_of_creation of the browsers...
(Currently we are supporting only title and the url..)

Browser("title:=xyz", "time_of_creation:=xyz", "index:=1")

Raghu Venkataramana - 08/Jun/07 03:51 AM
This can be looked at after beta

Raghu Venkataramana - 18/Jun/07 04:33 AM
Shruthi,

Can you try this?

You have to find the Win32 Handle (HWND) of all browsers and using that you somehow need to find the actual process of that window. You may probably be able to find the total time for which this process has lived - that can become the creation time.

Raghu