Exception : Microsoft.Uii.HostedApplicationToolkit.DataDivenAdapter.DataDrivenAdapterException: DDA0304: Html element is not a <button/> element

Aug 20, 2013 at 12:22 PM
I am doing automation through UII Hosted Application, Following are the controls that I have added using UII Inspector.

<InputElement name="FirstName" type="InputElement">
<ElementMatchPath>
/HTML/BODY/TABLE[1]/TBODY/TR/TD/FORM/TABLE[2]/TBODY/TR[1]/TD/INPUT
</ElementMatchPath>
</InputElement>

<InputElement name="Surname" type="InputElement">
<ElementMatchPath>
/HTML/BODY/TABLE[1]/TBODY/TR/TD/FORM/TABLE[2]/TBODY/TR[1]/TD[2]/INPUT
</ElementMatchPath>
</InputElement>

<ButtonElement name="Search" type="ButtonElement">
<ElementMatchPath>
/HTML/BODY/TABLE[1]/TBODY/TR/TD/FORM/TABLE[2]/TBODY/TR[3]/TD[3]/BUTTON
</ElementMatchPath>
</ButtonElement>

The idea is to do Auto Search on web hosted application after Customer Search. The Action is workflow driven which sets FirstName and Surname from Context. It seems to do as per expectation, but ExecuteControlAction action on Search button is throwing exception as mentioned below:

Posted implicit action exception: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.DataDrivenAdapterException: DDA0304: Html element is not a <button/> element.

Above exception is captured in CCA.log file. The html source of hosted web page is:



<td width="20%" align="left">
<button name="btnSearch.value" tabIndex="10" title="Click here to search" class="btn" id="btnSearch" accessKey="e" onclick="javascript:return validateIDCustSearchCriterion();;javascript:__doPostBack('IDCustomer','btnSearch','');" type="button">

<button name="btnClear.value" tabIndex="11" title="Click here to clear fields" class="btn" id="btnClear" accessKey="L" onclick="javascript:return clearForm();;javascript:__doPostBack('IDCustomer','btnClear','');" type="button">
</td>



First button refers to my Search Button.

Am I doing wrong or missing something? I’ve tested above scenario successfully in case of button is of InputElement type.

Any help on this would be great.
Sep 4, 2013 at 8:40 AM
As per the UII deployment Guide, the format for the Button is as below:

<ButtonElement name="control name">
Search Path Elements
</ButtonElement>


So, Give a try again by removing, " type="ButtonElement" " from your XML, May help you.
Sep 5, 2013 at 11:31 AM
Hi NitinSapkal,

Thanks for replying..

Even removing type="ButtonElement" attribute doesn't help. Receiving Same Error...

Posted implicit action exception: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.DataDrivenAdapterException: DDA0304: Html element is not a <button/> element.