[Webtest] Latest build issue - v
Marc Guillemot
Marc Guillemot <mguillemot@yahoo.fr>
Thu, 12 Apr 2007 16:30:59 +0200
I've made a change yesterday to fix WT-298 with verifyElementText and
added some selftest for that:
http://webtest.canoo.com/webtest/reports/selftest/File12.html
So it seems to work correctly.
Are you sure you're on the right page and that no other change occured
in your app?
Marc.
PS: I think that it is a good practice to add hidden element just to
provide information for the automated tests.
Christopher Colebourn wrote:
>
> I have the following element in my page:
>
> <span id="title" style="display:none; visibility: hidden;">Status
> Change</span>
>
> The hidden title is specifically used by the web tests to identify what
> page is currently displayed (yes, I know we could use the HTML title
> element, but we have other requirements for the content of that).
>
> To verify a page title as above I am using:
>
> <verifyElementText description="Verify the page displayed ok"
> htmlId="title" text="Status Change" />
>
> This worked fine in Canoo 2.1. I have now downloaded the latest version
> R_1541 and it fails with the following messages:
>
> [verifyElementText] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
> verifyElementText "Verify the page displayed ok" (10/12)
> [verifyElementText] INFO (com.canoo.webtest.steps.Step) - Running with:
> Canoo Webtest: R_1541.
> [verifyElementText] INFO (com.canoo.webtest.steps.Step) - Exception thrown
> from this class: com.canoo.webtest.engine.StepFailedException
> [verifyElementText] INFO (com.canoo.webtest.steps.Step) - Message was: No
> element found with id "title".
> INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: R_1541.
> INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class:
> com.canoo.webtest.engine.StepFailedException
>
> So what has changed? Why is it not finding the element? Any ideas?
>
>
> - Chris Colebourn
>
> CSC/FSG Consulting Principal
> Email: ccolebou@csc.com
> Phone: 860-221-2442
>
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> This is a PRIVATE message. If you are not the intended recipient, please
> delete without copying and kindly advise us by e-mail of the mistake in
> delivery. NOTE: Regardless of content, this e-mail shall not operate to
> bind CSC to any order or other contract unless pursuant to explicit written
> agreement or government initiative expressly permitting the use of e-mail
> for such purpose.
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>