I got it working with this. 

a = new Assert();
a.assertMatches(expectedValue, actualValue)

I'm not sure if this is the "right" way but this is
how I managed to get it working. Please let me know if
there is a better way.

Jay

--- Jay Donnell <[EMAIL PROTECTED]> wrote:

> Thanks, but that didn't work either. Now I get 
> Assert.matches is not a funciton
> 
> Can someone give a working example of a custom test?
> 
> Here is my code.
> 
> Selenium.prototype.assertNumReturned =
> function(locator, text) {
>     var expectedValue = text;
>     var actualValue = '5'; 
>     Assert.matches(expectedValue, actualValue);
> };
> 
> I call the test with:
> assertNumReturned     name=priceTo    3
> 
> 
> --- David Kemp <[EMAIL PROTECTED]> wrote:
> 
> > Yes, it is out of date.
> > Please replace 
> >     this.assertMatches(expectedValue,
> actualValue);
> > with
> >     Assert.matches(expectedValue, actualValue);
> > 
> > Cheers,
> > David
> > 
> > David Kemp
> > ThoughtWorks Australia Pty Ltd
> > http://www.thoughtworks.com
> > 
> > 
> >
> [EMAIL PROTECTED]
> > wrote on 07/09/2005 
> > 07:30:37 AM:
> > 
> > > I copied the example code for
> > > Selenium.prototype.doTypeRepeated from
> > >
> >
>
http://selenium.thoughtworks.com/seleniumReference.html
> > > 
> > > 
> > > I put it in a file called user-extensions.js but
> > when
> > > I run it I get this error in the firefox js
> > console.
> > > 
> > > this.assertMatches is not a function
> > > 
> > > Is the documentation outdated or am I missing
> > something?
> > > 
> > > 
> > > 
> > > 
> > >
> >
>
______________________________________________________
> > > Click here to donate to the Hurricane Katrina
> > relief effort.
> > > http://store.yahoo.com/redcross-donate3/
> > > _______________________________________________
> > > Selenium-users mailing list
> > > Selenium-users@lists.public.thoughtworks.org
> > >
> >
>
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users
> > > _______________________________________________
> > Selenium-users mailing list
> > Selenium-users@lists.public.thoughtworks.org
> >
>
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> _______________________________________________
> Selenium-users mailing list
> Selenium-users@lists.public.thoughtworks.org
>
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users
> 



        
                
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to