Hi,

support for hasAttribute will be provided by HtmlUnit 1.14 which will be
released in the next hours. Then it will be quickly integrated in WebTest.

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


[EMAIL PROTECTED] wrote:
> Hi,
> 
> I am filling up some inputfields with the part of my script by using
> <setInputField>. Inserting one of 3 fields causes the following
> errormessage:
> 
> The following error occurred while executing this line:
> C:\webtest\Immonet\definitions\seite2basisdaten.xml:23: Unexpected
> exception caught: com.gargoylesoftware.htmlunit.ScriptException:
> TypeError: Cannot find function hasAttribute.
> 
> The filling of that field calls a javascript-code, which contains
> functions called by Scriptaculous. This "hasAttribute()" function is
> given by Scriptaculous(http://script.aculo.us/).
> 
> I don't have a clou how I can handle this problem.
> 
> The used Javascritp is like this:
> 
> Element.Methods.Simulated = {
>   hasAttribute: function(element, attribute) {
>     var t = Element._attributeTranslations, node;
>     attribute = t.names[attribute] || attribute;
>     node = $(element).getAttributeNode(attribute);
>     return node && node.specified;
>   }
> };
> 
> 
> 
> Can anybody help me with my issue?
> 
> 
> 
> 
> 
> Dennis Winter
> 
> 
> 
> 
> 
> 
> 


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

Reply via email to