[EMAIL PROTECTED] wrote on 15/11/2005 08:50:51 PM:
> if(parseFloat(Y1) < parseFloat(Y2))
> {
> Assert.matches('1', '1');
> // here I wanted a command which tells selenium that the test is
> correct and as I don't know that I matched 1 with 1
> }
> else
> {
> Assert.matches('First element is below or at the same place as second
> ','1','2');
> // here I wanted a command which tells selenium that the test is
> failed and as I don't know that I matched 1 with 2
> }
> };
Try this instead:
if(parseFloat(Y1) >= parseFloat(Y2))
{
Assert.fail('First element is below or at the same place as second');
};
David Kemp
ThoughtWorks Australia Pty Ltd
http://www.thoughtworks.com
_______________________________________________ Selenium-users mailing list Selenium-users@lists.public.thoughtworks.org http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users