Hi,

if your page is changed dynamically by some JS code, then you may have
content that appears in the current page state on which storeXPath is
executed and that wasn't available in the original text sent by the server.
Additionally, verifyText works on the server response as plain text,
which means that it contains html markup, entities in not resolved form, ...

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

Hitesh Gupta wrote:
> sure Marc, we can talk on list.
> 
> waiting for your reply..
> Hitesh
> 
> On Wed, Oct 15, 2008 at 6:16 PM, Marc Guillemot <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
>     can we please continue the discussion on the list?
> 
>     Cheers,
>     Marc.
>     --
>     Web: http://www.efficient-webtesting.com
>     Blog: http://mguillem.wordpress.com
> 
>     Hitesh Gupta wrote:
>     > Hey Marc,
>     >
>     > I really did not understand anything from your last statement.
>     >
>     > I would appreciate, if you could be more specific or good if you can
>     > tell this with example.
>     >
>     > Thanks,
>     > Hitesh
>     >
>     > On Wed, Oct 15, 2008 at 6:02 PM, Marc Guillemot
>     <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>     > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote:
>     >
>     >     Hi,
>     >
>     >     storeXPath works on the current state of the page whereas
>     verifyText
>     >     works on the row answer from the server.
>     >
>     >     Cheers,
>     >     Marc.
>     >     --
>     >     Web: http://www.efficient-webtesting.com
>     >     Blog: http://mguillem.wordpress.com
>     >
>     >     Hitesh Gupta wrote:
>     >     > Hi,
>     >     >
>     >     > I am using storeXpath to store the text present in my web page
>     >     >
>     >     > <storeXPath xpath="/html/body/b" property="Servicename2" />
>     >     >
>     >     > after storing the x path I am verifying that text but the
>     issue is
>     >     when
>     >     > I am verifying the text by
>     >     > <verifyText description="Verify that text is contained in
>     the page"
>     >     > text="#{Servicename2}"/>
>     >     >  my test fails and it says that Text not found in the page.
>     >     >
>     >     > It correctly stores the name of the text in the property but
>     >     verifyText
>     >     > step fails.
>     >     >
>     >     > Please suggest me something.
>     >     >
>     >     > Hitesh
>     >
>     >
>     >     _______________________________________________
>     >     WebTest mailing list
>     >     [email protected] <mailto:[email protected]>
>     <mailto:[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