htmlunit Questions

2

I am trying to download file via HTMLUnit. But every time when I use code like this: InputStream stream = anchor.click().getWebResponse().getContentAsStream(); i get website instead file. Downl...
Blooper asked 5/8, 2014 at 10:21

3

HtmlUnit does not appears to close windows in the webclient and thus creating a memory leak. I am trying to get a page with HtmlUnit and pass it off to JSoup for parsing. I am aware that JSoup can ...
Uniformed asked 19/10, 2014 at 13:14

6

Solved

HtmlUnit throws exception and crash my test when I'm loading the page caps = Selenium::WebDriver::Remote::Capabilities.htmlunit(:javascript_enabled => true) driver = Selenium::WebDriver.for(:re...
Barbabra asked 5/1, 2012 at 15:29

1

I try to save the google page using HtmlUnit. But I can't get proper UI. When I check the saved page codes style tags are empty. My code is here. public static void main(String[] args) throws IOE...
Constrained asked 5/12, 2016 at 7:48

2

Solved

I'm trying to crawl a website using htmlunit. Whenever I run it though it only outputs the following error: Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot read ...
Muskogean asked 17/11, 2016 at 14:18

2

I am working on some project where in i need scrap some information from different website.I am using HtmlUnit for this purpose,But problem is i am unable to traverse through the elements on one pa...
Launch asked 21/6, 2013 at 12:48

1

For some reason my code with everything imported correctly, using Htmlunit causes an error. package htmlunittesting; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.ht...
Presignify asked 21/7, 2014 at 1:30

1

Solved

I'm trying to access a site and I'm having trouble adding the "Cookie" collected to outgoing POST request header. I've been able to verify that they are present in the CookieManager. Any alternati...
Brume asked 15/3, 2016 at 0:37

1

I am new to HtmlUnit and am having some trouble with logging in. Below code works perfectly fine for FireFoxDriver but fails for HtmlUnitDriver. The problem is it not executing javascript while cli...
Aircool asked 13/2, 2013 at 12:52

2

I'm trying to traverse through a website but on one of their pages I get this error: EcmaError: lineNumber=[671] column=[0] lineSource=[null] name=[TypeError] sourceName=[https://reservations.beso...
Psaltery asked 22/1, 2014 at 21:48

1

I'm working in an online banking application. I would like to login to retrieve the balance. I've been doing some research, and I found some useful HtmlUnit code from other posts. However, I'm stu...
Humerus asked 11/12, 2012 at 7:44

2

Solved

Is there a universal way to detect when a selenium browser opens an error page? For example, disable your internet connection and do driver.get("http://google.com") In Firefox, Selenium will loa...
Tumbling asked 30/3, 2014 at 5:54

3

Solved

HtmlUnit is an awesome Java library that allows you to programatically fill out and submit web forms. I'm currently maintaining a pretty old system written in ASP, and instead of manually filling o...
Heir asked 5/7, 2012 at 6:40

2

Solved

Can't really find any help on this but I've been trying to send a post request with HtmlUnit. The code I have is: final WebClient webClient = new WebClient(); // Instead of requesting the page di...
Jordanson asked 6/6, 2015 at 21:13

2

Solved

Using the implicit execution context in Scala, will each new future be computed on a single, dedicated thread or will the computation be divided up and distributed to multiple threads in the thread...
Mccord asked 21/4, 2015 at 16:38

1

Solved

I have a JAVA EE webapp on Glassfish using a GoDaddy SSL certificate. The HTTP listener redirects to the HTTPS one. I'm trying to get HtmlUnit to fetch a page from the webapp for Googlebot crawler...
Glaucoma asked 12/2, 2015 at 13:25

7

I am currently trying out HtmlUnit. I want to fill out an form and then submit it. But this results in an error, which seems to be caused by a file not being accessible, which results in a connecti...
Shelton asked 5/4, 2012 at 10:45

1

Solved

I'm fascinated towards robots. You know usually it creates our work easy and for web you don't need to go anywhere on links once our robots is initialized on web server. Let's come to our main qu...
Backtrack asked 23/1, 2015 at 13:23

2

I'm trying to use HtmlUnit to login to my local wordpress website but it seems to have a cookies issue. That's that begining of the code: WebClient webClient = new WebClient(); HtmlPage loginPage...
Explicit asked 27/11, 2010 at 10:51

2

I have a program written to scrape the source code from a webpage after a button is clicked. I am unable to scrape the right page because I believe an AJAX request is being sent, and I am not waiti...
Mullen asked 23/10, 2013 at 19:52

4

Solved

I have a GWT based page that I would like to create an HTML snapshot for it using HtmlUnit. The page loads using Ajax/JavaScript information on a product, so for about 1 second there is a Loading.....
Aw asked 5/4, 2011 at 16:28

2

I'm new to HtmlUnit and I'm not even sure if it is the right tool for my project. I'm trying to parse a website and extract the values I need from it. I need to get the value "07:05" from this, &...
Widower asked 4/5, 2013 at 14:28

4

I am very very new to HtmlUnit. I want to know do I am able to login to a site using htmlunit and perform some operations in the site for example I want to login to my office portal and to aplly a ...
Luciferase asked 25/5, 2012 at 7:31

4

Solved

import java.io.IOException; import java.net.MalformedURLException; import java.util.List; import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException; import com.gargoylesoftware.htmlunit....
Bengt asked 22/7, 2011 at 22:35

2

I am crawling data using HtmlUnit from a dynamic webpage, which uses infinite scrolling to fetch data dynamically, just like facebook's newsfeed. I used the following sentence to simulate the scrol...
Chemistry asked 25/8, 2012 at 5:58

© 2022 - 2024 — McMap. All rights reserved.