Use assertText instead of assertValue.
The latter is only for input elements (or anything with a value attribute).

However, Selenium should clearly fail with a better error message (e.g. "specified element is not an input element").  I will raise an issue on this.

Cheers,
David


David Kemp
ThoughtWorks Australia Pty Ltd
http://www.thoughtworks.com


[EMAIL PROTECTED] wrote on 07/10/2005 11:10:53 PM:

> Hello!  I just started working with your tool and I find it very useful. I did
> run into one snag so far. I’m using IIS5.0 and ASP.NET 1.1 for the site I’m
> testing. Here is the info I’ve collected on the error. Can you help me?
>
>
> Here is the test I’m performing:
>             <TR>
>                         <TD>assertValue</TD>
>                         <TD>UserName</TD>
>                         <TD>Jason Giles</TD>
>             </TR>
>
>
> And here is the source of the page that causes this error:
>
>
> <TR height="270">
>             <TD vAlign="top">
>                         <span id="UserName" class="normaltext">Jason
> Giles</span><BR>
>             </TD>
> </TR>
>
>
> Error message appears to be this:
>
> Selenium failure. Please report to
> selenium-devel@lists.public.thoughtworks.org, with details from the logs at the
> base of the page. The error message is: 'type' is null or not an object
>  
>
> I’m running Selenium version 0.6.0.
>
> Browser is IE 6.0.2900 with SP2
>
>
> Thank you for any help,
>
> -jason
>
>  
>
>
>
>      
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
> _______________________________________________
> Selenium-devel mailing list
> Selenium-devel@lists.public.thoughtworks.org
> http://lists.public.thoughtworks.org/mailman/listinfo/selenium-devel
_______________________________________________
Selenium-devel mailing list
Selenium-devel@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-devel

Reply via email to