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

HtmlUnitDriver is throwing java.lang.ExceptionInInitializerError

I am writing an ant task which uses below code : public class Klazz extends Task{ public void execute() throws BuildException{ HtmlUnitDriver driver = new HtmlUnitDriver(); …
Som
  • 4,618
  • 4
  • 29
  • 32
1
vote
0 answers

code not work on for HtmlunitDriver whereas same code work well for FirefoxDriver

When tried to execute the below code on FirefoxDriver(), code is executed very well. WebDriver driver = new FirefoxDriver(); But When tried to execute the same code with HtmlUnitDriver() WebDriver driver = new HtmlUnitDriver(); It throws an…
1
vote
2 answers

HTML UNIT FOUND: INTERNAL ERROR: Oops! Exiting

I'm new to the HTMLUNIT, When I run the below code. import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlForm; import com.gargoylesoftware.htmlunit.html.HtmlPage; import…
user2782522
  • 191
  • 1
  • 3
  • 13
1
vote
0 answers

HtmlUnit isn't working with Javascript enable in selenium API

I'm trying to use javascript enabled HtmlUnit webdriver under selenium API but I get these awful errors. Htmlunit without javascript works on the website just to connect and read direct data, but when it comes to click and select a menu javascript…
Wicelo
  • 2,358
  • 2
  • 28
  • 44
1
vote
1 answer

How to scrape data from website when dropdown list select?

Hi I am trying to scrape data from a web site I want to auto select dropdown menu in that website and then capture all data from the table. I am having a problem because in that website table id is not available there so I am confused how can I…
user3493831
  • 47
  • 1
  • 1
  • 8
1
vote
1 answer

How to do web scraping using htmlunitsriver?

i am getting somthing like this Hi i am scraping a web page using Selenium Webdriver an i am able to achieve my data but problem is that this directly interact with browser and i dont want to open a web browser and want to scrape all data as it…
user3456343
  • 252
  • 3
  • 7
  • 21
0
votes
0 answers

Highcharts not working correctly with htmlunit-driver

Highcharts charts svg should be rendered using htmlunit-driver same as it is any other browser like chrome, edge, firefox etc But the charts rendered are too small. Generated svg has a few NaN in the width attributes of couple rect tags. Moreover…
Aqeel Ashiq
  • 1,988
  • 5
  • 24
  • 57
0
votes
1 answer

Selenium 4 HtmlUnitDriver Button not clicked

I'm using Selenium 4 and HtmlUnitDriver with java, I have a problem with executing a form button. no error showed but I'm sure that the button was not clicked according to the output console result. I add some system output to know the result of…
Malki Mohamed
  • 1,578
  • 2
  • 23
  • 40
0
votes
1 answer

Unable to Access a website using FirefoxDriver and HtmlUnitDriver

I'm trying to access the website using FirefoxDriver but I'm getting a not a valid url exception I also tried with HtmlUnitDriver there the website title come back as null I tied the old and new website on the…
0
votes
1 answer

How to switch window on HtmlUnit

I have a selenium code below which switch window to another window. How do I do the same thing with HtmlUnit not HtmlUnitDriver. Set windows = driver.getWindowHandles();  List windowsH = new ArrayList<>(windows);…
buraz
  • 19
  • 6
0
votes
1 answer

How to use HtmlUnitDriver using Selenium in python?

I'm using selenium-4.1.0 and I'm searching for the lightest webdriver possible (for speed purpose). I heard about HtmlUnitDriver, but when using python, I need to run a selenium server before trying to use the driver. I was careful to take the…
0
votes
0 answers

Unable to fetch html for the websites loading at client side

I am unable to fetch/render the html for the client-side html loading, I tried using HtmlUnit and Jsoup but both of them are not working. I am only getting a blank html. try (final WebClient webClient = new WebClient()) { …
0
votes
1 answer

Setting up Selenium correctly

I have been trying to install Selenium for about a day now, and I can´t get it to work. First, I just downloaded the standalone jar and added it as a user library. That did work out fine, until I wanted to use…
mousekip
  • 117
  • 10
0
votes
1 answer

TypeError: Cannot find function entries in object function Object()

I'm using htmlunit to get this webpage https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies Maven dependency: net.sourceforge.htmlunit htmlunit
Niteesh
  • 2,742
  • 3
  • 12
  • 33
0
votes
0 answers

How to use HtmlUnit Driver with Selenium to input into a password field that has JavaScript keypress functions on it?

My code works with Chrome Driver. It also works with the HtmlUnit driver for the username field. And it also works for the password field if I don't enable JavaScript for the driver. However, For some reason it has an issue with the password field…
y.low
  • 21
  • 3