[Webtest] Canoo and Javascript Popup
Robert Bram
webtest@lists.canoo.com
Tue, 16 Nov 2004 09:21:50 +1100
Hi All!
I have a page with the following on it:
Calendar Popup Testing:
<a href='javascript:void(0);' onClick='javascript:calendar1.select
(document.getElementById ("startDate"),"calendarPopupLink","dd/MM/yyyy");'
name="calendarPopupLink" id="calendarPopupLink">Click me to test Calendar
Popup</a>.
<form method="post" id="calendarForm">
Date: <input type="text" id="startDate" name="startDate" value="" size="12"
disabled="disabled"/>
</form>
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:
<clicklink stepid="Click test Calendar Popup"
label="Click me to test Calendar Popup"/>
<verifytitle stepid="Verify Calendar Popup - check for title text "
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: VerifyTitle 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 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.