On 6/29/05, Mike Williams <[EMAIL PROTECTED]> wrote:
> On Wed, June 29, 2005 0:38, Andrey Yegorov said:
> > * 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
> 

The supported, documented way to access stored variables in your
javascript is using the "storedVars" map directly. So your example
would look like:

| store | javascript{storedVars['caption'].match( /Job Charge
(\d+)...| charge_number |

Would that work for you?

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

Reply via email to