With HtmlUnit 1.14, this dojo page loads just fine simulating IE but
gives an error with Firefox (but not hasAttribute problem).

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


Robert Bodziony wrote:
> i hope this 2 test will be working :D
> 
> (with firefox header ive got error hasAttribute) (IE has not response
> during sleep :( )
> 
>     <target name="test" depends="wt.defineMacros">
> 
>         <webtest name="check Dojo-Container - firefox">
>             <config>
>                 <header name="User-Agent" value="Mozilla/5.0 (Windows;
> U; Windows NT 5.1; pl; rv: 1.8.1.3 <http://1.8.1.3>) Gecko/20070309
> Firefox/2.0.0.3"/>
>             </config>
>             <invoke
> url="http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/Container.html
> <http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/Container.html>"
> />
>             <sleep seconds="10"/>
>         </webtest>
>         <webtest name="check Dojo-Container - ie">
>             <config>
>                 <header name="User-Agent" value="Mozilla/4.0
> (compatible; MSIE 6.0; Windows NT 5.1; SV1; User-agent: Mozilla/4.0
> (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ; .NET
> CLR 1.1.4322; .NET CLR 2.0.50727; FDM)" />
>             </config>
>             <invoke
> url="http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/Container.html";
> />
>             <sleep seconds="10"/>
>         </webtest>
> 
>     </target>
> 
> Regards,
>  Robert
>  
> 
> 
> 2008/1/9, Marc Guillemot < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>:
> 
>     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] <mailto:[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] <mailto:[email protected]>
>     http://lists.canoo.com/mailman/listinfo/webtest
> 
> 

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

Reply via email to