[Webtest] Re: VerifyXPath on Flash object

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Thu, 17 Jul 2008 09:59:10 +0200


until now, the information you provided ... only showed that your test
was wrong.

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


Tokutan wrote:
> 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/>
>         <http://1.8.1.14 <http://1.8.1.14/>>) Gecko/20080404
>         > Firefox/2.0.0.14 <http://2.0.0.14/> <http://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 <mailto:mguillemot@yahoo.fr>>
>     To: webtest@lists.canoo.com <mailto:webtest@lists.canoo.com>
>     Subject: Re: [Webtest] Re: VerifyXPath on Flash object
>     Reply-To: webtest@lists.canoo.com <mailto:webtest@lists.canoo.com>
>     Reply-To: Marc Guillemot <mguillemot@yahoo.fr
>     <mailto: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>
>     <http://1.8.1.14>) Gecko/20080404
>     > Firefox/2.0.0.14 <http://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>
>     >
>     >
> 
> 
> 
> 
>     --__--__--
> 
>