Hello,
I am trying to click the button using clickbutton step. But clicking the button
neither generates a new response (Resulting page in generated Testreport) nor
I am able to verify on the new page (because we didnt navigate to it).
Html-source:
<div style="float:right; height:30px;">
<table class="nsButton">
<tr>
<td class="b"><input
id="b_Button" type="submit" name="b_Button" value="Button1"
style="width:108px;" class="button" /> </td>
<td class="s"><input id="s_Button" type="submit" name="s_Button"
value="Button2" style="width:108px;" class="button" />
</td>
</tr>
</table>
</div>
The Step written in the testscript is -----
<clickbutton description="Follow the link to the next page" label="Button1"/>
I did manage to get more detailed log info by modifying the log4j.properties
file. The log info is as under ----
[clickbutton] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
clickbutton "Follow the link to the next page" (11/11)
[clickbutton] DEBUG (com.canoo.webtest.steps.Step) - Executing clickbutton
"Follow the link to the next page" (11/11)
[clickbutton] INFO (com.canoo.webtest.steps.request.AbstractTargetAction) - ->
gotoTarget by clickButton with name: null
[clickbutton] DEBUG (com.canoo.webtest.steps.request.ClickButton) - Looking for
button in current form
[clickbutton] DEBUG (com.canoo.webtest.steps.request.ClickButton) - Looking for
inputs of type submit, image or button in HtmlForm[<form id="form1"
name="form1" method="post" action=""
enctype="application/x-www-form-urlencoded" style="display:inline">]
[clickbutton] DEBUG (com.canoo.webtest.steps.request.ClickButton) - Examining
button: HtmlSubmitInput[<input value="Button1" type="submit"
disabled="disabled" class="button" style="width:108px;" name="b_Button"
id="b_Button">]
[clickbutton] DEBUG (com.canoo.webtest.steps.request.ClickButton) - submit
button found: HtmlSubmitInput[<input value="Button1" type="submit"
disabled="disabled" class="button" style="width:108px;" name="b_Button"
id="b_Button">]
[clickbutton] INFO (com.canoo.webtest.steps.request.ClickButton) - ->
findTarget(by input): name=b_Button value=Button1
[clickbutton] DEBUG (com.canoo.webtest.steps.Step) - Finished clickbutton
"Follow the link to the next page" (11/11)
[clickbutton] DEBUG (com.canoo.webtest.steps.Step) - Completed Step:
clickbutton "Follow the link to the next page" (11/11)
[clickbutton] DEBUG (com.canoo.webtest.steps.AbstractBrowserAction) - Current
response didn't change during step execution
[clickbutton] DEBUG (com.canoo.webtest.steps.Step) - Step didn't produce
results, no need to notifying listeners
[clickbutton] DEBUG (com.canoo.webtest.steps.Step) - <<<< Successful Step:
clickbutton "Follow the link to the next page" (11/11)
DEBUG (com.canoo.webtest.reporting.StepExecutionListener) - isToIgnore: [EMAIL
PROTECTED], main
DEBUG (com.canoo.webtest.reporting.StepExecutionListener) - isToIgnore: [EMAIL
PROTECTED], main
DEBUG (com.canoo.webtest.ant.TestStepSequence) - Step execution finished
DEBUG (com.canoo.webtest.steps.Step) - Finished steps (12/11)
DEBUG (com.canoo.webtest.steps.Step) - Completed Step: steps (12/11)
DEBUG (com.canoo.webtest.steps.Step) - Step didn't produce results, no need to
notifying listeners
DEBUG (com.canoo.webtest.steps.Step) - <<<< Successful Step: steps (12/11)
Any idea?
Thanks for your tips in advance,
Vipin
This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply
e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing
or copying of this email or any action taken in reliance on this e-mail is
strictly
prohibited and may be unlawful.