[Webtest] "storeRegEx" not working on dynamic content

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Wed, 21 Nov 2007 14:42:38 +0100


Note it is easy to develop own xpath functions to use in xpath
expressions. Furthermore the XPath 2 function "matches" that works with
regular expression is already available in the namespace "wt" (yes, yes,
I know, I have to write a doc about that).

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


Dierk Koenig wrote:
> Hm. storeXPath works on the DOM (of course) while storeRegex works the
> plain text that the server sends back. All AJAX stuff happens on the
> DOM.
> 
> You require that storeRegEx would need to grab the current DOM, transfer it
> into
> text and work from there. Such a text would be necessarily _very_
> different from the original text, which would break a huge number
> of tests out there. The purpose of all regex steps is to
> enable the tester to work on the (possibly malicious) raw content.
> 
> For your purpose I would advice to either make a custom step like
> outlined above, or use XPath and Regex in combination.
> 
> hope that helps
> Dierk
> 
>> -----Original Message-----
>> From: webtest-admin@lists.canoo.com
>> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Rolf Koehl
>> Sent: Mittwoch, 14. November 2007 17:32
>> To: webtest@lists.canoo.com
>> Subject: [Webtest] "storeRegEx" not working on dynamic content
>>
>>
>> Hi guys,
>>
>> analyzing a dynamic page (a part of its content is loaded via Ajax), I
>> realized that
>> "storeXPath" works on the dynamic content as desired. Instead "storeRegEx"
>> seems to work only on static content.
>>
>> I'm wrong or is it the way it's working?
>>
>> Regards
>> Rolf
>>
>>
>> _______________________________________________
>> WebTest mailing list
>> WebTest@lists.canoo.com
>> http://lists.canoo.com/mailman/listinfo/webtest
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>