Questions tagged [nhtmlunit]

8 questions
2
votes
1 answer

NHtmlUnit error "Could not generate DH keypair"

Everytime I try to scrape a page e.g. HtmlPage page1 = (HtmlPage)client.GetHtmlPage("https://groceries.morrisons.com/"); I get the following error: Additional information: java.lang.RuntimeException: Could not generate DH keypair Web Client…
Vil
  • 135
  • 1
  • 2
  • 12
2
votes
1 answer

com.gargoylesoftware.htmlunit.ScriptException: Exception invoking open

I'm working with an intranet site. When I login to the "https://itam.flextron.com.au/arsys/shared/login.jsp" website via chrome or IE browser it's work fine. However while I login to the website via browser a window pop up and closes automatically…
user2782522
  • 191
  • 1
  • 3
  • 13
1
vote
1 answer

Connecting to website with TLS 1.2 and specific cipher suites with MVC 5 application

I have an MVC 5 application that is using NHtmlUnit's WebClient to connect to another website, I am having trouble making that connection while in debug. The website I am connecting to requires the following protocol and cipher suites: Initially…
Alec Menconi
  • 735
  • 1
  • 16
  • 36
1
vote
1 answer

Method not found exception when creating a WebClient in NHtmlUnit

I used NuGet to install the NHtmlUnit Pacakge (v2.15.0.0) into a MVC5 project using Visual Studio 2015. var client = new WebClient(BrowserVersion.CHROME); I've also tried without specifying a browser and with IE11. Here are the exceptions…
David W Gray
  • 681
  • 6
  • 18
1
vote
2 answers

NHtmlUnit cannot submit button

I'm discovering about NHtmlUnit to build an application web. But when I try it with auto login to yahoo mail. But after I run code. I refresh the login page of Yahoo so nothing changed. Not logged. Code: NHtmlUnit.WebClient driver = new…
0
votes
0 answers

htmlunit proxy getting WebSite Blocked / Access to Site Restricted statuscode 403

i am trying to scrape websites with proxy but i get blocked/access denied. this is my code: this.webClient = new WebClient(BrowserVersion.FIREFOX_52, "190.132.233.13", 1212); this.webClient.getCredentialsProvider().setCredentials(AuthScope.ANY, new…
haim
  • 589
  • 3
  • 7
  • 11
0
votes
1 answer

Unable to click button using NHtmlUnit

I have a unit test which simulates a login on Uber. The goal is to acquire a token that isn't otherwise accessible without an interactive login. I've had this working in the passed but it appears the Uber login experience has changed and now I'm…
Wade
  • 741
  • 1
  • 5
  • 18
0
votes
0 answers

C#, HtmlUnit JavaScript Support

I am trying to read a test page using NHtmlUnit.WebClient. The page is keep asking to enable JavaScript. Am I missing something? My Code: var client = new NHtmlUnit.WebClient(BrowserVersion.FIREFOX_17); client.Options.JavaScriptEnabled =…
Eyal
  • 4,653
  • 9
  • 40
  • 56