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
>
> On Mar 30, 8:56 am, John <[email protected]> wrote:
>
>
>
> > Thanks, I will write a test to see what the problem is.
>
> > -Jian
>
> > On Mar 30, 8:04 am, dominicm <[email protected]> wrote:
>
> > > I tried opening the same window using pure Selenium and it worked
> > > fine. Also selectWindow worked.
>
> > > Possibly Tellurium is not picking up the values from the uiObject
> > > correctly?
>
> > > On Mar 27, 6:57 pm, John <[email protected]> wrote:
>
> > > > Did you see Tellurium passed in the correct window ID? Was it caused
> > > > by the fact
> > > > that Tellurium passed in null as the window ID or Selenium did not
> > > > honor the window ID
> > > > and just passed in null?
>
> > > > Thanks,
>
> > > > Jian- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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