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
0
votes
1 answer

Python/Selenium: HTMLUNIT Driver Connection Refused - Port Blocked

I am trying to set up and use HTMLUnit driver in Python 3. I believe I have the server running (v3.7.0) and believe the code should work based looking up other questions on here. I believe that the remote server uses port 4444 but my ISP locks that…
Aiden
  • 309
  • 2
  • 16
0
votes
1 answer

How to access embedded iframe elements with htmlunit driver?

I want to access the inner content of an embedded iframe with com.gargoylesoftware.htmlunit.WebClient: #document ... I…
membersound
  • 81,582
  • 193
  • 585
  • 1,120
0
votes
1 answer

How to handle a window based authentication in HTMLUNIT driver

I wanna run my test cases in headless mode, and I picked HtmlUnit is the way to achieve my requirement. But, the initial page where I need to handle windows based authentication box, and based on valid authentication it will take me to summary page…
ArrchanaMohan
  • 2,314
  • 4
  • 36
  • 84
0
votes
1 answer

What is the correct date format for a HtmlUnit input type=date tag?

The headless HtmlUnit browser seems to support the date type for an input tag: However, I can't figure out which is the correct format for the date that HtmlUnit accepts for this tag. The formates I've tried so far…
user1785730
  • 3,150
  • 4
  • 27
  • 50
0
votes
1 answer

HtmlUnit Driver not able to pick correct URL

I am trying to implement headless testing so used HtmlUnit Driver for that. It is working fine but fails on assert statement when I try to compare actual URL and expected URL. When I use HtmlUnit Driver, it picks up # at the end of URLs due to…
0
votes
1 answer

HtmlUnit unable to click on spans in Selenium, Java

I'm writing an automation tool in Java using Selenium. The following code works fine if the WebDriver is FirefoxDriver, however if I try to substitute it with HtmlUnitDriver it will crash on the line when it is supposed to click on a span. I have…
HelloImRandom
  • 97
  • 2
  • 6
0
votes
0 answers

Not able to set value using HtmlUnitDriver + Geb

I'm trying to fill a value in the text field and click a button using selenium + HtmlUnitDriver + Geb. Following is my code import geb.Browser; import org.openqa.selenium.htmlunit.HtmlUnitDriver; RoFlow { def browser = new Browser() browser.driver…
hprakash
  • 452
  • 2
  • 10
0
votes
1 answer

unable to run the HtmlUnit Driver with selenium Webdriver using java

This is the code : And error : I am trying to run the script in headless browser but it gives the error as mentioned in screenshot.
0
votes
1 answer

How to use HtmlUnitDriver with application using jquery 3.1.1

I am trying to automate the flow of a website which has a jquery sweet alert. When I use HtmlUnitDriver for headless browser testing then the sweet alert is considered as not visible. So when I tried to execute javascript to change div display to…
Grishma Oswal
  • 303
  • 1
  • 7
  • 22
0
votes
0 answers

HTMLUNIT not loading HTTPS webpage

I am trying to load an HTTPS URL which works fine with the FirefoxDriver, but when I use HTMLUNIT Driver, I'm getting below error when trying to access the first element on the webpage. org.openqa.selenium.NoSuchElementException: Unable to locate…
James Meade
  • 1,147
  • 5
  • 22
  • 46
0
votes
1 answer

Automation using HtmlUnit

I am trying to open webpages and click on its links using HtmlUnit in java but am getting initialization error. Can someone tell me how to resolve this error. Here is my code: package learn1; import java.net.URL; import…
ACE
  • 11
  • 3
0
votes
1 answer

Selenium StaleElementReferenceException while using EventFiringWebDriver

Dear all I am using Selenium EventFiringWebDriver to record the called web driver methods. I recognised that I often get a "StaleReferenceException" while when I just use the HtmlUnitDriver alone I don't have the issue. I also recognised that the…
0
votes
1 answer

HtmlUnitDriver doesn't find elements as ChromeDriver

I have simple scrap application where I want to find all hrefs on matches: public class MainClass { public static void main(String args[]) { WebDriver driver = null; driver = new HtmlUnitDriver(BrowserVersion.CHROME); // …
0
votes
0 answers

Get attribute id with HTMlUnit Driver for a button

For this HTML:
0
votes
0 answers

can htmlunitdriver supports downloading of files from the browser?

I have a code, where it downloads files from the browser (chrome or firefox), but when used headless browsers like htmlunitdriver or phantomjs, they are executing complete code but skipping downloading of files from the browser. So would like to…