Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wrong url strucked in HtmlUnitDriver

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic