[Webtest] Canoo and Javascript Popup

Robert Bram webtest@lists.canoo.com
Wed, 17 Nov 2004 08:55:06 +1100


Hi All!

Sorry for that - wrong recipient! :-/

Rob
:)

-----Original Message-----
From: Robert Bram [mailto:Robert.Bram@colesmyer.com.au]
Sent: Wednesday, 17 November 2004 8:52 AM
To: 'webtest@lists.canoo.com'
Subject: RE: [Webtest] Canoo and Javascript Popup



Hi James,

A second reply to the Calendar Popup question, suggesting that
"javascript:void(0)" would always fail. What do you think?

Kind regards,

Rob
:)

-----Original Message-----
From: Marc Guillemot [mailto:mguillemot@yahoo.fr]
Sent: Tuesday, 16 November 2004 9:08 PM
To: webtest@lists.canoo.com
Subject: Re: [Webtest] Canoo and Javascript Popup


Hi Robert,

roughly speaking, the "result" of a clicklink is the href of the link. In
your case "javascript:void(0)" gives nothing, 
therefore the current page is always the previous one. We could imagine
having this behavior changed in the future to 
have as current page the one with the focus (no idea what it may have for
side effects).

More pragmatic, we need a step like <followwindow> allowing to select one
window by name / title. When I find time, I 
will take a look at that trying to include webtests for this (great)
calendar tool in the selftests.

Have you tried using the calendar as div?

Marc.


Robert Bram wrote:
> 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.
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> 

_______________________________________________
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.
_______________________________________________
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.