Hi,

does this XPath work when you evaluate it directly in a browser (for
instance using the WebTestRecorder pluging in Firefox)? I don't
understand what you want to do with the last part of this expression:
"text()[last()]".

Cheers,
Marc.
-- 
Web: http://www.efficient-webtesting.com
Blog: http://mguillem.wordpress.com

张伟伟 wrote:
> hi everyone ,
> 
> when i using canoo , i met a problem : when storeXPath can't find the
> suitable match ,
> it will stop follow steps throw exception message ,like this :
> 
> 
>       Message
> 
> No match for xpath expression
> <//tbody[count(tr)>30]//td/b[contains(text(),'Fax
> :')]/parent::*/text()[last()]
> 
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> So how can i make it  neglect the error can continue exucte next
> <storeXPath  ? just now ,i check the haltonfailure and haltonerror
> attribute in config, but it does'nt works , i think it will conintue
> next webtest ,not next step . Any idear  ?
> 
> ////////////////////////////////////////////////
> 
> <target name="test">
>  <webtest name="test">
>         <config
>             host="www.foreignhr.com <http://www.foreignhr.com>"
>             port="80"
>             protocol="http"
>             summary="true"
>             saveresponse="false"
>             resultpath="/home/eggsist/canooTest/results"
>           />
>     <steps>
>            <invoke url="index.php"/>
> 
>            <storeXPath description="title" xpath="******"
> property="jobtitle" />
>            
>             <storeXPath description="rFax" xpath="*****"
> property="employerFax" />
>                   
>             <storeXPath description="rEmail" xpath="******"
> property="employDesc" />
> 
> </steps>
> .................


_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to