Hi Chang,
this code shouldn't cause any problem therefore I think that it is not
triggered at all.
Is it correct that the popup should appear just by selecting some field?
(ie without clicking any button)
Can you set the log level to debug to see what htmlunit does when the
select is set?
Btw: which WebTest build do you use?
Marc.
Chang Su wrote:
>
> I am attaching more info here, and hope to get it to
> work this time:)
>
> Selecting "DELETE" executes js script which does,
>
> wizard_popup('/LdomMgmt/faces/jsp/lifeCycle/Delete.jsp','DeleteDomain',500,750,'yes')
>
> function wizard_popup(url, name, height, width,modal)
> {
>
> var newurl = url + "?&WIZARD_NAME=" + name;
> ....
> var popup = window.open(newurl, name, args);
> popup.focus();
> return false;
> }
>
> why webtest is not seeing this new pop-up window?
>
>
> thanks,
>
> Chang
>
> --- Chang Su <[EMAIL PROTECTED]> wrote:
>
>> Hi, Marc,
>>
>> And I tried to print the windows as you suggested in
>> other emails after I do <setSelectField>
>>
>> <groovy>
>> def windows = step.context.webClient.webWindows
>> def index = 0
>> windows.each
>> {
>> println index + "-> name: " + it.name + ", url:
>> "
>> +
>> it.enclosedPage.webResponse.url
>> index++
>> }
>> </groovy>
>>
>> It is only showing one window,
>> case:
>> [groovy] 0-> name: , url:
>> https://san-11.west:6699/LdomMgmt/faces/jsp/LdomMgmt
>>
>>
>> why it is not finding the new pop-up window??
>>
>> thanks,
>>
>> Chang
>>
>>
>>
>> --- Chang Su <[EMAIL PROTECTED]> wrote:
>>
>>> Hi Marc,
>>>
>>> Thanks for reply. So I am doing this,
>>>
>>> <verifytitle
>>> text="All Domains"/>
>>>
>>> <setSelectField
>>> description="Set value to Delete"
>>>
>>>
> xpath="//[EMAIL PROTECTED]'form1:table1:actionsBottom:lifecycleActions']"
>>> saveResponse="true"
>>> value="DELETE" />
>>>
>>> <verifytitle
>>> text="Delete Domain"/>
>>>
>>> however it failed here Expected "Delete Domain"
>> but
>>> got "All Domains" which is still the previuos
>>> window.
>>> also response.html shows the previous response.
>>>
>>>
>>>
>>> thanks,
>>>
>>> Chang
>>>
>>>
>>>
>>>
>>>
>>>
>>> --- Marc Guillemot <[EMAIL PROTECTED]> wrote:
>>>
>>>> Hi Chang,
>>>>
>>>> forget (2) this is just a warning from your
>>> browser
>>>> (which you can
>>>> deactivate in most browsers) and just perform
>> the
>>>> other steps. Normally
>>>> you don't need any <selectWindow> because you
>> just
>>>> work on the "focused"
>>>> window.
>>>>
>>>> Marc.
>>>>
>>>> Chang Su wrote:
>>>>> Hi,
>>>>>
>>>>> sorry that I have been posting so many
>> questions
>>>>> recently,
>>>>>
>>>>> I have a BUI page with a drop-down list,
>>>>> 1) if I select on one field from the list (say
>>>>> "DELETE"), it brings a warning dialog ("You
>> have
>>>>> requested an encyprted page ...",
>>>>>
>>>>> 2) if I click on "ok" on the warning dialog,
>> it
>>>> opens
>>>>> another window which inlcude some texts,
>> another
>>>> list
>>>>> and three buttons (previous, next and cancel)
>>> with
>>>>> title "https://san-7:6699 - Delete Domains".
>>>>>
>>>>> 3) If I choose one field from the list and
>> click
>>>> on
>>>>> "Next", it does to the next step (still with
>> the
>>>> same
>>>>> window but internal contents changed), with
>>>> "finish"
>>>>> button,
>>>>>
>>>>> 4) if I click on "finish button", it goes back
>>> to
>>>> main
>>>>> browser window.
>>>>>
>>>>> so how do I do these steps? Can someone give
>> me
>>>> some
>>>>> advices, my guess is,
>>>>>
>>>>> <setSelectField ...> for step 1)
>>>>>
>>>>> <expectDialog dialogType="alert" /> for step
>> 2)
>>>>> what is the new window here? is it a form?? do
>> I
>>>> use
>>>>> <selectWindow??
>>>>>
>>>>> thanks,
>>>>>
>>>>> Chang
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
> ____________________________________________________________________________________
>>>>> Want to start your own business?
>>>>> Learn how on Yahoo! Small Business.
>>>>> http://smallbusiness.yahoo.com/r-index
>>>>>
>> _______________________________________________
>>>>> WebTest mailing list
>>>>> [email protected]
>>>>>
>> http://lists.canoo.com/mailman/listinfo/webtest
>>>> _______________________________________________
>>>> WebTest mailing list
>>>> [email protected]
>>>> http://lists.canoo.com/mailman/listinfo/webtest
>>>>
>>>
>>>
>>>
>>>
> ____________________________________________________________________________________
>>> Any questions? Get answers on any topic at
>>> www.Answers.yahoo.com. Try it now.
>>> _______________________________________________
>>> WebTest mailing list
>>> [email protected]
>>> http://lists.canoo.com/mailman/listinfo/webtest
>>>
>>
>>
>>
>>
> ____________________________________________________________________________________
>> Do you Yahoo!?
>> Everyone is raving about the all-new Yahoo! Mail
>> beta.
>> http://new.mail.yahoo.com
>> _______________________________________________
>> WebTest mailing list
>> [email protected]
>> http://lists.canoo.com/mailman/listinfo/webtest
>>
>
>
>
>
> ____________________________________________________________________________________
> Looking for earth-friendly autos?
> Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
> http://autos.yahoo.com/green_center/
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest