I had writen a selenium script for automation, and I am using HTMLUnitDriver for running it on linux as headless browsing. I had some concern -
- When I try to run my same script with WebDriver, i.e
WebDriver driver = new FirefoxDriver()
it runs fine successfully. - But when I try to run my same script with HTMLUnitDriver, i.e
HTMLUnitDriver driver = new HTMLUnitDriver()
, I am getting an exception and exception follows:
org.openqa.selenium.TimeoutException: Timed out after 100 seconds waiting for element to be clickable: By.xpath:
I am not getting what will be the root cause for this exception as the same script is running without any issue with firefox or chrome driver, but only it is not working with HTMLUnitDriver. Also I had tried increasing the time but it is also not helpful.
Please can anybody provide any help, will be really appreciated.....Thanks.