aspose file tools*
The moose likes Testing and the fly likes wrong url strucked in HtmlUnitDriver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "wrong url strucked in HtmlUnitDriver" Watch "wrong url strucked in HtmlUnitDriver" New topic
Author

wrong url strucked in HtmlUnitDriver

Eshwin Sukhdeve
Ranch Hand

Joined: Mar 15, 2012
Posts: 79
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.
 
subject: wrong url strucked in HtmlUnitDriver
 
Similar Threads
Help on Fluid screens
url direction in jsp!
Removing Rows from JTable
Change password for user
Idea to sort a list and get a result