Hi,

I went through all the posts containing "onclick" in the subject but didn't 
find solution to my problem.

The thing is that WebTest finds the link and seems to click on it but doesn't 
follow the link.

HTML looks like this:

</li>
<li onclick="window.document.location='/ams/EnterActivity.form'"
align="center" valign="middle" class="navItem"
onmouseover="this.className='navItemOver'"
onmouseout="this.className='navItem'">

<a href="/ams/EnterActivity.form"
accesskey="N"
id="EnterActivityHead"
onclick="return false"
>E<u>N</u>TER ACTIVITY</a> 
</li>

and the test looks like this:

.....
<clickLink description="Click link: ${General.Enter}" 
htmlId="EnterActivityHead"/>
<verifyText description="Verify that text exists on the page" 
text="${EnterActivity.body.title.enter}"/>
.....

And what Webtest is saying about that:

DEBUG (com.canoo.webtest.ant.TestStepSequence) - Executing step ClickLink at C:\workspace\ams_tests\modules\activities\activities_enter.xml:11: with (description="Click link: Enter", htmlId="EnterActivityHead", taskName="clickLink")
[clickLink] DEBUG (com.canoo.webtest.steps.Step) - Expanding properties for clickLink 
"Click link: Enter" (8/15)
[clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink "Click 
link: Enter" (8/15)
[clickLink] DEBUG (com.canoo.webtest.steps.Step) - Executing clickLink "Click link: 
Enter" (8/15)
[clickLink] INFO (com.canoo.webtest.steps.request.AbstractTargetAction) - -> 
gotoTarget by clickLink
[clickLink] DEBUG (com.canoo.webtest.steps.request.ClickLink) - Searching link 
with id: EnterActivityHead
[clickLink] DEBUG (com.canoo.webtest.steps.request.ClickLink) - Clicking on 
link with href: /ams_load/EnterActivity.form
[clickLink] DEBUG (com.canoo.webtest.steps.Step) - Finished clickLink "Click link: 
Enter" (8/15)
[clickLink] DEBUG (com.canoo.webtest.steps.Step) - Completed Step: clickLink "Click 
link: Enter" (8/15)
[clickLink] DEBUG (com.canoo.webtest.steps.AbstractBrowserAction) - Current 
response didn't change during step execution
[clickLink] DEBUG (com.canoo.webtest.steps.Step) - <<<< Successful Step: clickLink 
"Click link: Enter" (8/15)
DEBUG (com.canoo.webtest.ant.TestStepSequence) - Executing step VerifyText at C:\workspace\ams_tests\modules\activities\activities_enter.xml:12: with (description="Verify that text exists on the page", taskName="verifyText", text="Enter activity")
[verifyText] DEBUG (com.canoo.webtest.steps.Step) - Expanding properties for verifyText 
"Verify that text exists on the page" (9/15)
[verifyText] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: verifyText 
"Verify that text exists on the page" (9/15)
[verifyText] DEBUG (com.canoo.webtest.steps.Step) - Executing verifyText "Verify 
that text exists on the page" (9/15)
[verifyText] DEBUG (com.canoo.webtest.steps.Step) - Step failed at 
C:\workspace\ams_tests\modules\activities\activities_enter.xml:12:  with 
exception
[verifyText] com.canoo.webtest.engine.StepFailedException: Step[verifyText "Verify that text exists on the page" (9/15)]: Text not found in page. Expected <Enter activity>, Step: VerifyText at C:\workspace\ams_tests\modules\activities\activities_enter.xml:12: with (description="Verify that text exists on the page", taskName="verifyText", text="Enter activity")
[verifyText] at 
com.canoo.webtest.steps.verify.VerifyText.doExecute(VerifyText.java:45)
[verifyText] at com.canoo.webtest.steps.Step.execute(Step.java:132)

Other problems we have got solved, this one is currently last one and most 
annoying.

Does anyone have solution for that?

Thanks in advance,

Mart Toom
Aqris

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to