Here is the Java doc. Maybe it mentioned window's name and then I used
the name attribute.
/** Opens a popup window (if a window with that ID isn't already
open).
After opening the window, you'll need to select it using the
selectWindow
command.
<p>This command can also be a useful workaround for bug SEL-339. In
some cases, Selenium will be unable to intercept a call to window.open
(i
f the call occurs during or before the "onLoad" event, for example).
In those cases, you can force Selenium to notice the open window's
name by using the Selenium openWindow command, using
an empty (blank) url, like this: openWindow("", "myFunnyWindow").</p>
@param url the URL to open, which can be blank
@param windowID the JavaScript window ID of the window to select
*/
void openWindow(String url,String windowID);
On Mar 27, 11:46 am, John <[email protected]> wrote:
> You are right, the user guide was wrong and it should be
>
> openWindow UID, url
>
> under the hood, tellurium actually calls Selenium RC method
>
> openWindow(url, name)
>
> I do not remember why I chose to use name, not id from the Window
> object, which has
> both id and name attributes. But for your case, there are the same and
> should not matter.
>
> Why you need to call on the uiObject
>
> uiObject.openWindow("moreInfo","http://www.some.url")
>
> instead of
>
> openWindow("moreInfo","http://www.some.url") ?
>
> Could you post your full stack trace so that I can see what got
> called?
>
> Thanks,
>
> Jian
>
> On Mar 27, 11:22 am, dominicm <[email protected]> wrote:
>
> > Hi,
>
> > When using openWindow(uid, url) my test crashes. It seems to be coming
> > from some URLEncode function in Selenium.
>
> > My code is:
> > ui.Window(uid:'moreInfo',clocator:
> > [name:'moreInfoChart',id:'moreInfoChart']){
>
> > }
>
> > uiObject.openWindow("moreInfo","http://www.some.url")
>
> > I've noticed that the user guide is inconsistent with the java doc so
> > I suspect this could be a bug
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---