From: James A. <the...@ya...> - 2003-08-11 19:35:26
|
I can't seem to get any attributes of anything. The only way I can is through the .toString() method. Is there something that I could have done to have this happen? Things, thus far, that do not work: - HtmlPage + .getTitleText() - HtmlAnchor + .getHrefAttribute() + .getNameAttribute() + .getClassAttribute() + .getIdAttribute() + .getTitleAttribute() - HtmlForm + .getMethodAttribute() + .getNameAttribute() + .getClassAttribute() + .getIdAttribute() + .getTitleAttribute() - HtmlInput + .getNameAttribute() + .getClassAttribute() + .getIdAttribute() + .getTitleAttribute() + .getTypeAttribute() Nothing works, it all just outputs an empty string. The only thing that does work is the .toString method. Here is my java file: http://www.k-state.edu/test/james/HtmlUnitTest1UTest.java Here is my copy of the output from ant: http://www.k-state.edu/test/james/formOutput.txt I really think that HtmlUnit is the solution to my project, but nothing seems to be working the way ( I believe ) it should. Let me reiterate that I could have done something wrong like that, but I don't see how or where I did. Thank you for your time and attention. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |