[Webtest] Canoo and Javascript Popup

Robert Bram webtest@lists.canoo.com
Tue, 16 Nov 2004 10:35:41 +1100


Hi Lisa,

Thanks for this. We will try the invoke task shortly when it is time to come
back to it!

Rob
:)

-----Original Message-----
From: lisa.crispin@att.net [mailto:lisa.crispin@att.net]
Sent: Tuesday, 16 November 2004 9:53 AM
To: webtest@lists.canoo.com
Subject: Re: [Webtest] Canoo and Javascript Popup


Robert,
Have you tried this with the new HtmlUnit-based WebTest?  I 'm using that
and I played around with invoking a calendar popup. I could verify text on
it, but the resulting page only had some text on it, not the actual
calendar.  Also I was using invoke and not clicklink, because we don't have
alt tags for our calendar images yet in our HTML.  I'm planning to try to do
more with this when we do, so I'm very interested in what you find out.  I
don't recall having luck with Javascript popup windows in the HTTPUnit
version, but I didn't try very hard.
-- Lisa



-------------- Original message from Robert Bram
<Robert.Bram@colesmyer.com.au>: -------------- 


> 
> Hi All! 
> 
> I have a page with the following on it: 
> 
> Calendar Popup Testing: 
> > name="calendarPopupLink" id="calendarPopupLink">Click me to test
Calendar 
> Popup. 
> 

> Date: > disabled="disabled"/> 
> 

> 
> The source for CalendarPopup is here: 
> http://www.mattkruse.com/javascript/calendarpopup/source.html 
> 
> The popup displays a calender with the HTML title of "Calendar". My tests 
> for this page and the popup are: 
> 
> > label="Click me to test Calendar Popup"/> 
> 
> > text="Calendar" 
> regex="false" /> 
> 
> Clicklink says it works, but the resulting page is not the popup - it is 
> still the 'base' page. 
> 
> The error for verifytitle is: 
> com.canoo.webtest.engine.StepFailedException: Wrong document title found! 
> Expected "Calendar" but got "IBM WebSphere Portal", Step: VerifyT! itle at

>
C:\eTech\eEmployment\test\web\usecases\eJobRequisition\UC_EJR_07SelectDatePo

> pup\selectDatePopupTest.xml:79: with (text="Calendar", stepId="Verify 
> Calendar Popup - check for title text ", regex="false", 
> stepType="verifytitle") 
> 
> Does this mean Web Canoo cannot handle javascript popups or is there 
> something funky in the CalendarPopup.js that confuses Web Canoo? 
> 
> Any advice would be most appreciated! 
> 
> Rob 
> :) 
> 
> Robert Mark Bram 
> Coles Myer Ltd. - e-Portal Team 
> Level 3, Module 3 
> 800 Toorak Rd 
> Tooronga, VIC, 3146 
> Phone: (+613) 9829 6856 
> Email: Robert.Bram@colesmyer.com.au 
> 
> 
> This email and any attachments may contain privileged and confidential 
> information and are intended for the named addressee only. If you have
received 
> this e-mail in error, please notify t! he sender and delete this e-mail 
> immediately. Any confidentia lity, privilege or copyright is not waived or
lost 
> because this e-mail has been sent to you in error. It is your
responsibility to 
> check this e-mail and any attachments for viruses. No warranty is made
that 
> this material is free from computer virus or any other defect or error.
Any 
> loss/damage incurred by using this material is not the sender's
responsibility. 
> The sender's entire liability will be limited to resupplying the material.

> _______________________________________________ 
> WebTest mailing list 
> WebTest@lists.canoo.com 
> http://lists.canoo.com/mailman/listinfo/webtest 

This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses.  No warranty is made that this material is free from computer virus or any other defect or error.  Any loss/damage incurred by using this material is not the sender's responsibility.  The sender's entire liability will be limited to resupplying the material.