[Webtest] Re: VerifyXPath on Flash object

Tokutan Tokutan <tokutan@gmail.com>
Wed, 16 Jul 2008 21:07:13 +1000


------=_Part_74482_1304000.1216206433960
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

In relation to my previous email , I am still unable to identify an object
element (flash) using xpath.


> >         <webtest name="Verify adkit">
> >         <config haltonerror="false" haltonfailure="false"
> > autorefresh="true">
> >
> >          <option name="
>>
>> ThrowExceptionOnScriptError"
>> >         value="false"
>> >         />
>> >                   <option name="ThrowExceptionOnFailingStatusCode"
>> >         value="false"
>> >         />
>> >         <header name="User-Agent" value="Mozilla/5.0 (Windows; U;
>> > Windows NT 5.1; en-US; rv:1.8.1.14 <http://1.8.1.14>) Gecko/20080404
>> > Firefox/2.0.0.14 <http://2.0.0.14>"/>
>> >         </config>
>> >         <enableJavaScript enable="true"/>
>> >         <invoke
>> > url="
>> http://www.careerone.com.au/jobs/job-search/special-features/project-services-challenge-and-work-life-balance
>> "/>
>> >         <verifyXPath
>> > xpath="//object"
>> > description="test xpath"/>
>> >         </webtest>
>
>
As you can see , I have tried to use any position of node in xpath to
identify object node, but webtest is still unable to identify any object
node. I have downloaded  the latest build version 1711and also updated to
Htmlunit 2.2 snapshot but webtest still not able to find the object node.
I have tried as well using sleep seconds="10" after invoke url but that
didn't help too.

Thanks for the reply:)

Btw, what is the easiest way to output the  xml structure of the page which
webtest actually sees?




>
>
>
> --__--__--
>
> Message: 6
> Date: Mon, 16 Jun 2008 09:46:26 +0200
> From: Marc Guillemot <mguillemot@yahoo.fr>
> To: webtest@lists.canoo.com
> Subject: Re: [Webtest] Re: VerifyXPath on Flash object
> Reply-To: webtest@lists.canoo.com
> Reply-To: Marc Guillemot <mguillemot@yahoo.fr>
>
> Have you tried with a snapshot of HtmlUnit 2.2?
>
> Cheers,
> Marc.
> --
> Blog: http://mguillem.wordpress.com
>
>
> Tokutan wrote:
> > Hi Marc,
> >
> > Thanks for your reply. Unfortunately, I am still having the same problem
> > i.e. not able to identify flash object. I have downloaded the latest
> > version of webtest and have added header to simulate Firefox (checked my
> > firefox version from htmlunit)
> >
> > Here is the sample of the script that failed:
> >
> >
> >         <webtest name="Verify adkit">
> >         <config haltonerror="false" haltonfailure="false"
> > autorefresh="true">
> >
> >          <option name="ThrowExceptionOnScriptError"
> >         value="false"
> >         />
> >                   <option name="ThrowExceptionOnFailingStatusCode"
> >         value="false"
> >         />
> >         <header name="User-Agent" value="Mozilla/5.0 (Windows; U;
> > Windows NT 5.1; en-US; rv:1.8.1.14 <http://1.8.1.14>) Gecko/20080404
> > Firefox/2.0.0.14 <http://2.0.0.14>"/>
> >         </config>
> >         <enableJavaScript enable="true"/>
> >         <invoke
> > url="
> http://www.careerone.com.au/jobs/job-search/special-features/project-services-challenge-and-work-life-balance
> "/>
> >         <verifyXPath
> > xpath="//object"
> > description="test xpath"/>
> >         </webtest>
> >
> >
>
>
>
>
> --__--__--
>
>

------=_Part_74482_1304000.1216206433960
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">In relation to my previous email , I am still unable to identify an object element (flash) using xpath. <br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;webtest name=&quot;Verify adkit&quot;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;config haltonerror=&quot;false&quot; haltonfailure=&quot;false&quot;<br>
&gt; autorefresh=&quot;true&quot;&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;option name=&quot;<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">ThrowExceptionOnScriptError&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; value=&quot;false&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; /&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option name=&quot;ThrowExceptionOnFailingStatusCode&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; value=&quot;false&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; /&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;header name=&quot;User-Agent&quot; value=&quot;Mozilla/5.0 (Windows; U;<br>
&gt; Windows NT 5.1; en-US; rv:<a href="http://1.8.1.14/" target="_blank">1.8.1.14</a> &lt;<a href="http://1.8.1.14/" target="_blank">http://1.8.1.14</a>&gt;) Gecko/20080404<br>
&gt; Firefox/<a href="http://2.0.0.14/" target="_blank">2.0.0.14</a> &lt;<a href="http://2.0.0.14/" target="_blank">http://2.0.0.14</a>&gt;&quot;/&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/config&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;enableJavaScript enable=&quot;true&quot;/&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;invoke<br>
&gt; url=&quot;<a href="http://www.careerone.com.au/jobs/job-search/special-features/project-services-challenge-and-work-life-balance" target="_blank">http://www.careerone.com.au/jobs/job-search/special-features/project-services-challenge-and-work-life-balance</a>&quot;/&gt;<br>

&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;verifyXPath<br>
&gt; xpath=&quot;//object&quot;<br>
&gt; description=&quot;test xpath&quot;/&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/webtest&gt;</blockquote></blockquote><div><br>As
you can see , I have tried to use any position of node in xpath to
identify object node, but webtest is still unable to identify any
object node. I have downloaded&nbsp; the latest build version 1711and also
updated to Htmlunit 2.2 snapshot but webtest still not able to find the
object node.<br>
I have tried as well using sleep seconds=&quot;10&quot; after invoke url but that didn&#39;t help too. <br>
<br>
Thanks for the reply:) <br><br>Btw, what is the easiest way to output the&nbsp; xml structure of the page which webtest actually sees?<br><br><br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"></blockquote><br>
<br>
<br>
--__--__--<br>
<br>
Message: 6<br>
Date: Mon, 16 Jun 2008 09:46:26 +0200<br>
From: Marc Guillemot &lt;<a href="mailto:mguillemot@yahoo.fr">mguillemot@yahoo.fr</a>&gt;<br>
To: <a href="mailto:webtest@lists.canoo.com">webtest@lists.canoo.com</a><br>
Subject: Re: [Webtest] Re: VerifyXPath on Flash object<br>
Reply-To: <a href="mailto:webtest@lists.canoo.com">webtest@lists.canoo.com</a><br>
Reply-To: Marc Guillemot &lt;<a href="mailto:mguillemot@yahoo.fr">mguillemot@yahoo.fr</a>&gt;<br>
<br>
Have you tried with a snapshot of HtmlUnit 2.2?<br>
<br>
Cheers,<br>
Marc.<br>
--<br>
Blog: <a href="http://mguillem.wordpress.com" target="_blank">http://mguillem.wordpress.com</a><br>
<br>
<br>
Tokutan wrote:<br>
&gt; Hi Marc,<br>
&gt;<br>
&gt; Thanks for your reply. Unfortunately, I am still having the same problem<br>
&gt; i.e. not able to identify flash object. I have downloaded the latest<br>
&gt; version of webtest and have added header to simulate Firefox (checked my<br>
&gt; firefox version from htmlunit)<br>
&gt;<br>
&gt; Here is the sample of the script that failed:<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;webtest name=&quot;Verify adkit&quot;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;config haltonerror=&quot;false&quot; haltonfailure=&quot;false&quot;<br>
&gt; autorefresh=&quot;true&quot;&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;option name=&quot;ThrowExceptionOnScriptError&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; value=&quot;false&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; /&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option name=&quot;ThrowExceptionOnFailingStatusCode&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; value=&quot;false&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; /&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;header name=&quot;User-Agent&quot; value=&quot;Mozilla/5.0 (Windows; U;<br>
&gt; Windows NT 5.1; en-US; rv:<a href="http://1.8.1.14" target="_blank">1.8.1.14</a> &lt;<a href="http://1.8.1.14" target="_blank">http://1.8.1.14</a>&gt;) Gecko/20080404<br>
&gt; Firefox/<a href="http://2.0.0.14" target="_blank">2.0.0.14</a> &lt;<a href="http://2.0.0.14" target="_blank">http://2.0.0.14</a>&gt;&quot;/&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/config&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;enableJavaScript enable=&quot;true&quot;/&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;invoke<br>
&gt; url=&quot;<a href="http://www.careerone.com.au/jobs/job-search/special-features/project-services-challenge-and-work-life-balance" target="_blank">http://www.careerone.com.au/jobs/job-search/special-features/project-services-challenge-and-work-life-balance</a>&quot;/&gt;<br>

&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;verifyXPath<br>
&gt; xpath=&quot;//object&quot;<br>
&gt; description=&quot;test xpath&quot;/&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/webtest&gt;<br>
&gt;<br>
&gt;<br><br>
</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
<br>
--__--__--<br>
<br></blockquote></div><br></div>

------=_Part_74482_1304000.1216206433960--