[Webtest] "storeRegEx" not working on dynamic content
Dierk Koenig
Dierk Koenig" <dierk.koenig@canoo.com
Wed, 14 Nov 2007 18:38:22 +0100
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