Hi,
What is the result to call the following method to get back the name of the
new opened window?
selectWindow(getAllWindowNames()[1]);
Of course, you need to use the following method to call Selenium API
directly:
def customDirectCall(String method, Object[] args)
i.e., customDirectCall("getAllWindowName", null) in your case.
Thanks,
Jian
On Tue, Jul 20, 2010 at 9:10 PM, apal apal <[email protected]> wrote:
> The problem is the new window url is not fixed(it can change at any time)
> so I can't use the URL.
> For selectWindow(), it seems it has to pass the id/title/name of the new
> window, but since the reason above, seems not work too. Could you give me a
> sample code if it works for you?
>
> On Tue, Jul 20, 2010 at 9:22 PM, Jian Fang <[email protected]>wrote:
>
>> Hi,
>>
>> If it is not a popup window, you cannot use selectWindow() for that. Have
>> you tried to use connectUrl(new window url)?
>>
>> Thanks,
>>
>> Jian
>>
>>
>> On Tue, Jul 20, 2010 at 4:42 AM, apal apal <[email protected]> wrote:
>>
>>> Dear John,
>>>
>>> I'm encounter a problem that when I click on a link, it opens new window.
>>> I'm looking for 2 ways to solve this, but both have problems:
>>> 1. use "selectWindow", but the problem is the new window has no id or
>>> title, and the name is wrong;
>>> 2. use runScript, but I can't find any sample.
>>>
>>> Could u help? Looking forward for your reply!!
>>>
>>>
>>> --
>>> -Thank you!
>>> -Apal
>>>
>>
>> --
>> 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]<tellurium-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/tellurium-users?hl=en.
>>
>
>
>
> --
> -Thank you!
> -Song Yun :)
>
--
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.