[Webtest] (no subject)
Robert Bodziony
Robert Bodziony" <robert.bodziony@gmail.com
Thu, 10 Jan 2008 09:51:36 +0100
------=_Part_5472_17540454.1199955096322
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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) Gecko/20070309 Firefox/2.0.0.3"/>
</config>
<invoke url="
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 <mguillemot@yahoo.fr>:
>
> 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
>
>
> dennis.winter@immonet.de 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
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
------=_Part_5472_17540454.1199955096322
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
i hope this 2 test will be working :D<br><br>(with firefox header ive got error hasAttribute) (IE has not response during sleep :( )<br><br> <target name="test" depends="wt.defineMacros"><br><br>
<webtest name="check Dojo-Container - firefox"><br> <config><br> <header name="User-Agent" value="Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:<a href="http://1.8.1.3">
1.8.1.3</a>) Gecko/20070309 Firefox/2.0.0.3"/><br> </config><br> <invoke url="<a href="http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/Container.html">http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/Container.html
</a>" /><br> <sleep seconds="10"/><br> </webtest><br> <webtest name="check Dojo-Container - ie"><br> <config><br> <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; <a href="http://bsalsa.com">http://bsalsa.com</a>) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM)" /><br> </config>
<br> <invoke url="<a href="http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/Container.html">http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/Container.html</a>" /><br>
<sleep seconds="10"/><br> </webtest><br><br> </target><br><br>Regards,<br> Robert<br> <br><br><br><div><span class="gmail_quote">2008/1/9, Marc Guillemot <<a href="mailto:mguillemot@yahoo.fr">
mguillemot@yahoo.fr</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>support for hasAttribute will be provided by HtmlUnit
1.14 which will be<br>released in the next hours. Then it will be quickly integrated in WebTest.<br><br>Cheers,<br>Marc.<br>--<br>Blog: <a href="http://mguillem.wordpress.com">http://mguillem.wordpress.com</a><br><br><br>
<a href="mailto:dennis.winter@immonet.de">dennis.winter@immonet.de</a> wrote:<br>> Hi,<br>><br>> I am filling up some inputfields with the part of my script by using<br>> <setInputField>. Inserting one of 3 fields causes the following
<br>> errormessage:<br>><br>> The following error occurred while executing this line:<br>> C:\webtest\Immonet\definitions\seite2basisdaten.xml:23: Unexpected<br>> exception caught: com.gargoylesoftware.htmlunit.ScriptException
:<br>> TypeError: Cannot find function hasAttribute.<br>><br>> The filling of that field calls a javascript-code, which contains<br>> functions called by Scriptaculous. This "hasAttribute()" function is
<br>> given by Scriptaculous(<a href="http://script.aculo.us/">http://script.aculo.us/</a>).<br>><br>> I don't have a clou how I can handle this problem.<br>><br>> The used Javascritp is like this:<br>>
<br>> Element.Methods.Simulated = {<br>> hasAttribute: function(element, attribute) {<br>> var t = Element._attributeTranslations, node;<br>> attribute = t.names[attribute] || attribute;<br>> node = $(element).getAttributeNode(attribute);
<br>> return node && node.specified;<br>> }<br>> };<br>><br>><br>><br>> Can anybody help me with my issue?<br>><br>><br>><br>><br>><br>> Dennis Winter<br>><br>><br>
><br>><br>><br>><br>><br><br><br>_______________________________________________<br>WebTest mailing list<br><a href="mailto:WebTest@lists.canoo.com">WebTest@lists.canoo.com</a><br><a href="http://lists.canoo.com/mailman/listinfo/webtest">
http://lists.canoo.com/mailman/listinfo/webtest</a><br></blockquote></div><br>
------=_Part_5472_17540454.1199955096322--