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

How to resolve NoSuchElementException in HtmlUnitDriver

I am trying to run my script in background using HtmlUnitDriver but it throwing Nosuchelementexection every time,but it getting the current url. import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import…
Raghu
  • 93
  • 2
  • 4
  • 11
0
votes
1 answer

HTMLUnit remove logs

How can I avoid HtmlUnitDriver creating logs? With the default configuration a lot of unnecessary logs are created. For example: SEVERE: HtmlSpan[] -> HtmlHtml[] I've tried with the advice from this site…
Molly
  • 297
  • 1
  • 5
  • 16
0
votes
1 answer

HtmlUnitDriver() not working

I have a selenium project set up in Eclipse. I was able to get my selenium project to work with the firefox driver; however, i get the following error when I try to use the HtmlUnitDriver instead: Exception in thread "main"…
Justin
  • 742
  • 5
  • 17
  • 34
0
votes
2 answers

HtmlUnitDriver and MouseOver

My problem with "you may only interact with elements that are currently visible" error, descriped better here Actions and htmlunitdriver - speed issue is not solved by waiting. It occured to me that how can I be sure that the .perform -operation is…
mjgirl
  • 1,214
  • 7
  • 24
  • 42
-1
votes
1 answer

How to fix this HtmlUnit test giving errors

I have a HtmlUnit test on the attached code. When I run the code I get the following error:
rich25
  • 37
  • 11
-1
votes
1 answer

HtmlUnitDriver to invoke local html file

I am trying to invoke a locally stored html file using the get() method of the HtmlUnitDriver, but the page is not getting loaded. I tried to get the page source and I got 404 not found as the response. If I use the chrome driver in headless mode I…
-1
votes
1 answer

how to maximise window size in htmlunit driver?

I am running selenium test using HtmlUnitDriver but at some point test keep failing. Is there any way we can maximize the window size in HtmlUnitDriver?
bugCracker
  • 3,656
  • 9
  • 37
  • 58
-1
votes
1 answer

How to send the login credentials using HtmlUnitDriver and Selenium Java

I'm tring to send the login credentials within the username and password field https://www.vignanits.ac.in/server/moodle/login/index.php which needed to be automated using HtmlUnitDriver but facing NoSuchElementException. Code trials: package…
-1
votes
1 answer

How to create a list of the items under Pick a Category (US) rendered differently through HtmlUnitDriver and HtmlUnit headless browser?

How to create a list of the items under Pick a Category (US) from amzscout rendered differently through HtmlUnitDriver and HtmlUnit headless browser? Using GeckoDriver / Firefox and ChromeDriver / Chrome combination, I am able to create the list and…
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
-1
votes
2 answers

Unable to launch HtmlUnitdriver through Selenium 3.4.0

I am tried to run the HtmlUnitDriver with selenium 3.4 and chrome Version 64.0.3282.119 (Official Build) (32-bit). My code is: package eclipse; import java.io.File; import org.openqa.selenium.By; import org.openqa.selenium.Capabilities; import…
-1
votes
1 answer

Selenium Htmlunit org.openqa.selenium.ElementNotVisibleException: You may only interact with visible elements

enter image description here Need support on issue selecting radio button, tried with javascript but not working. WebElement Select4 = driver.findElement(By.name("IsGoldMember")); Select4.click();
Rajesh Varma
  • 151
  • 2
  • 10
-1
votes
2 answers

I am started writing script on HtmlUnitDriver but got some error

I am started writing script on HtmlUnitDriver but got some error. I am getting error "java.lang.NoClassDefFoundError". Please help me out. Check the code and error in detail below. Here is the Code: package com.pom.sampletests; import…
-1
votes
1 answer

error in getting HTML tag's content using HtmlUnitDriver

I am trying to get html content of an html tag using HtmlUnitDriver. The code i have written is: WebElement table_element = wd.findElement(By.id("genericTableFormtable")); String str=table_element.getAttribute("outerHTML"); int…
honey preet
  • 101
  • 2
  • 16
-1
votes
1 answer

HtmlUnit 2.17 have issues with Java 7

My This code works with Java6 but not with Java7. I used both HtmlUnit2.12 and HtmlUnit2.17, nothing works. Please suggest what I am missing here? From Java7 I am getting this Exception : java.net.SocketTimeoutException: Read timed out import…
Shashank
  • 712
  • 15
  • 33
-1
votes
1 answer

error 403 in htmlunit scraping although it’s manually opening

I’m trying to use html_unit 1.14 for scraping on fake proxy. It gives me (error 403), although it’s opened manually on the browser. What could be the reason and how to detect it?
Dodji
  • 70
  • 1
  • 9
1 2 3
14
15