This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Http Exception

 
Pen Pentela
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Iam writing soem HttpUnit cases for web application.

iam able to open login page n home page.I am getting some Exception when i try to click one link.

can any one help me how to do this

here is my code

WebLink[] link1=response.getLinks();
for (int j = 0; j < link1.length; j++)
{
String str2 = link1[j].getURLString();
//System.out.println(str1);
if(str2.equalsIgnoreCase(" some jsp url here"))

{
WebResponse resp1=link1[j].click();
WebForm[] Form = resp1.getForms();
System.out.println(resp1.getText());

}
}

BestRegards,
Newbie
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"pentela pp",
Please check your private messages regarding an important administrative matter.
-Ben
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic