4 messages in com.canoo.lists.webtestRe: [Webtest] "storeRegEx" not workin...| From | Sent On | Attachments |
|---|---|---|
| Rolf Koehl | 14 Nov 2007 08:32 | |
| Dierk Koenig | 14 Nov 2007 09:37 | |
| Marc Guillemot | 21 Nov 2007 05:42 | |
| Rolf Koehl | 21 Nov 2007 05:54 |
| Subject: | Re: [Webtest] "storeRegEx" not working on dynamic content![]() |
|---|---|
| From: | Rolf Koehl (rolf...@gmx.net) |
| Date: | 11/21/2007 05:54:39 AM |
| List: | com.canoo.lists.webtest |
Hi Dierk, hi Marc,
thanks for your helpfull responses. I got it working.
Rolf
Marc Guillemot wrote:
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.
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: webt...@lists.canoo.com [mailto:webt...@lists.canoo.com]On Behalf Of Rolf Koehl Sent: Mittwoch, 14. November 2007 17:32 To: webt...@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 WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest




