Using Eclipse I'm writing a program to test web pages in Java, with JUnit and HttpUnit.
I'm trying to click on a submit button (button1) inside a table cell. But when I use assert to make sure the button is there I get this message:
pageException in thread "main" junit.framework.AssertionF
: expected:<Search for Projects & Documents> but was:<Submit with cmdSearch=Search for Projects & Documents>
The actual value doesn't make any sense to me, what I read from the message is not what I see in the HTML source of the web page.
I attach both my java code and the HTML source. Please have a look at the line in my java code where I'm creating the variable button1, because the error message comes from the line after that.