Seems the name is the correct attribute to pass in.

Thanks,

Jian

On Mar 31, 6:50 am, dominicm <[email protected]> wrote:
> Aha I see now, thanks for your help!
>
> Regarding the way Selenium uses the parameter passed to it, I tried
> the following;
>
> sel.open("http://some.url";);
> sel.openWindow("http://some.other.url";, "nameOrId");
> sel.selectWindow("nameOrId);
>
> String[] windowIds = sel.getAllWindowIds();
> String[] windowNames = sel.getAllWindowNames();
>
> windowIds contents are [undefined, undefined]
> windowNames contents are [main, nameOrId]
>
> So it would appear that the openWindow command assigns the supplied
> value to the window name, not the window Id.
>
> On Mar 31, 3:34 am, John <[email protected]> wrote:
>
> > dominicm,
>
> > I found where the problem is,  you should define the UI module as
>
> > ui.Window(uid:'moreInfo', name:'moreInfoChart', id:'moreInfoChart' ){
>
> > }
>
> > The reason is that name and id are attributes of the Window object
> > itself and
> > not in the composite locator, which makes sense because they are used
> > to identify the Window but not to locate the position in the DOM.
>
> > There is one more question, what Selenium really needs to pass in for
> > the
> > Window object when you call openWindow(), I mean the name or the ID
> > attribute?
> > Could you do some research on that?
>
> > Thanks,
>
> > Jian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to