Questions tagged [htmlunit-driver]

Selenium HtmlUnit Driver is a WebDriver implementation using HtmlUnit as browser.

Selenium HtmlUnit Driver is a WebDriver implementation which allows to control the headless browser HtmlUnit via the WebDriver API.

215 questions
1
vote
2 answers

Submit form without button in selenium

On the page I want to test I have a form like this:
A normal use-case here would be that the user enters some text and then hits enter. For testing I tried sending…
fuzzi
  • 87
  • 8
1
vote
0 answers

I can't use HtmlUnitDriver with Maven in my JavaFX project

I'm trying to use HtmlUnitDriver in my JavaFX project but when I add HtmlUnitDriver I get these Errors I tried different version and still same error I dont know what to do Caused by: java.lang.ClassNotFoundException:…
Ali
  • 11
  • 1
1
vote
0 answers

How to find out whats going wrong in HTMLUnitDriver/Firefox with a page that closes itself?

I am analysing websites often with Firefox (66) and it's Network Analysis which is very helpful. Now I have a situation where I open a page and this page opens another one. Within this last page I fill in something and then pressing the submit…
PowerStat
  • 3,757
  • 8
  • 32
  • 57
1
vote
1 answer

search element with dynamic ID using java htmlunit

From a web page, I want to search all h3 whose id starts with 'Tomcat_' and ends with '_released'

2019-04-13 Tomcat 9.0.19 Released

Programming-Lover
  • 1,177
  • 10
  • 14
1
vote
0 answers

How to run Selenium automated tests with HtmlUnit driver and Spring Boot?

Not able to configure and run Selenium tests after configuring HtmlUnit driver in my Spring Boot application. Getting an error when I execute the test. BaseSeleniumTests.java public abstract class BaseSeleniumTests { protected static String…
Nital
  • 5,784
  • 26
  • 103
  • 195
1
vote
1 answer

HTML unit driver with selenium not click the button

I want to click a element with onclick tag in html unit driver. But it didn't work. Page source: I tried following method. click method; public HtmlUnitDriver driver = new HtmlUnitDriver(BrowserVersion.CHROME, true); driver.get(appURL); WebElement…
1
vote
1 answer

Selenium .NET HtmlUnitDriver failed to connect to remote server

I'm porting some Selenium JUnit tests to a .NET project (tests for a MVC project). I have following line in Java: WebDriver driver = new HtmlUnitDriver(); I ported it to .NET like this: IWebDriver driver = new…
JC97
  • 1,530
  • 2
  • 23
  • 44
1
vote
1 answer

HTMLUnitDriver returning error in Selenium Automation Testing which ChromeDriver doesn't

Aim: To use headless option for selenium testing of login page.(HTMLUnitDriver preferable) I am trying to automate a login to a site using HTMLUnitDriver. When I sendKeys to an element, it throws an error. HtmlUnitDriver driver = new…
Mike
  • 721
  • 1
  • 17
  • 44
1
vote
1 answer

HtmlUnitDriver click and wait for reloading element

My question is how can I perform click on element to get data from server response? Algorithm: 1) Click on div element
1
vote
1 answer

htmlunit and htmlunit-driver differences

What is the difference between original http://htmlunit.sourceforge.net and Seleium implementation known as htmlunit-driver?
1
vote
1 answer

Cannot get HTMLUnitDriver Warnings Off

I cannot get the HTML Unit Driver warnings to turn off. The code below reduced the original amount of warnings. Cannot get the last bit to turn off. I cannot get the HTML Unit Driver warnings to turn off. The code below reduced the original amount…
Febian Shah
  • 967
  • 5
  • 12
  • 23
1
vote
1 answer

Selenium HTMLUNIT Ignore JS Errors in Python

I'm using Selenium and the HTMLUnit with Javascript enabled to read websites in Python. Unfortunately, I'm running into problems with websites that don't have the cleanest Javascript. For example: from selenium import webdriver try: browser =…
A Gregory
  • 21
  • 6
1
vote
1 answer

Unable to detect pop ups in headless mode

I'm running some UI tests with selenium and TestNG. All test cases are passed when executed with Firefox driver. But when I use HtmlUnitDriver, one test case fails where it requires accepting a confirmation pop up message by clicking on the button.…
Pubudu
  • 478
  • 1
  • 6
  • 22
1
vote
3 answers

HTMLUnitDriver not working + correct maven dependencies?

I'm using Selenium for Java and I'm having problems with the HTMLUnitDriver. No matter which website I try or dependencies, it just crashes on almost any JavaScript according to the console output. When I use PhantomJS instead, it's all good and…
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
1
vote
3 answers

Simple test with selenium HTMLUnitDriver do not work fine, is it wrong?

I am a beginner with selenium, I am doing a test but I do not understand why it does not work. Here are my code and the following error. import org.openqa.selenium.*; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; …
mvillegas
  • 57
  • 2
  • 9