On Wed, June 29, 2005 0:38, Andrey Yegorov said:

> I attached the user-extensions file that I am using currently with
> selenium 0.5.
> Hope you'll find it useful :)

Thanks Andrey!

> * BugFix to make next scenario work:
>
>   | storeText | _ctl0_page_header__page_header__v_caption
> | caption
>   | store     | javascript{'${caption}'.match( /Job Charge (\d+), Job
> #(\d+)
> "(.+)"/ )[1];} | charge_number
>
>   I needed to parse record id out of the message text
>   Released version does not support use of selenium's variables (like
> ${caption}) in the javascript{} calls.
>
>   Hope to see the fix in the future versions of the selenium.

Any chance you could log this as an enhancement request at

  http://jira.public.thoughtworks.org/browse/SEL

if you haven't already done so.

> * BugFix to make possible handling messages like
>   "aaaa \r bbbbb", "aaaa \n bbbbb", "aaaa \r\n bbbbb"
>   (simply removing \r and \n)
>
>   | verifyConfirmation | aaaa <BR> bbbbb |
>   is not crossplatfrom - Safari replaces <BR> with \r, IE = With \r\n,
> etc.
>
> This one now is not critical for me at all as I use
> assertConfirmationMatch (see below).

Yeah - I had to make a similar local modification here :-)  As you say,
it's not quite so important if you can do pattern-matching against the
confirmation message.  Selenium-0.6 will support

  | verifyConfirmation | aaaa * bbbbb | |

> * new asserts that allow to match text against the RegExp.
> Example:
>
>  | verifyTextMatch | /Start date: (\d\d)\/(\d\d)\/(\d\d\d\d)\//g |
>  | verifyElementTextMatch | _ctl0_page_header__page_header__v_caption |
> /Job
> Charge (\d+), Job #(\d+) "(.+)"/g |

As it happens, I've just implemented similar functionality.  In
Selenium-0.6, you'll be able to do

  | verifyText | headerSpan | regexp:Start date: \d{2}/\d{2}/\d{4} |

Regexp patterns will work for verifyValue, verifyText, verifyAttribute,
etc. (anywhere we were supporting "glob" patterns before), plus
verifyAlert and  verifyConfirmation.

Does your "verifyTextMatch" match against the entire contents of the page?

-- 
cheers, Mike


_______________________________________________
Selenium-users mailing list
[EMAIL PROTECTED]
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to