• Post Reply Bookmark Topic Watch Topic
  • New Topic

wrong url strucked in HtmlUnitDriver  RSS feed

 
Eshwin Sukhdeve
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am creating one simple script in selenium using HtmlUnitDriver() API.

driver = new HtmlUnitDriver(capabilities);
driver.get(url);

its working fine with correct URL.but when I give worng url it is getting strucked.
so I want if it is wrong url..then it should wait for some time.and thorw
some exception. it should not hang or strucked

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!