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

PayPal Sandbox not able to find password field

I'm currently using HtmlUnitDriver, and while I am able to set the username, I keep getting an error that Selenium could not find the password field. I am using JavascriptExecutor to set these values inside the PayPal sandbox form, but I'm still…
Wheh
  • 1
0
votes
1 answer

Htmlunit JavaScript Execution

I am planning to develop code for measure Web page loading time using HtmlUnit Below is my code public static void main(String[] args) throws IOException { final WebClient webClient = new WebClient(BrowserVersion.CHROME); …
Kavinda
  • 177
  • 2
  • 12
0
votes
1 answer

Error in method invocation when executing java scripts in selenium using jmeter

I'm getting following error while try to execute the java script within my selenium code. Error: Response message: javax.script.ScriptException: Sourced file: inline evaluation of: import org.openqa.selenium.By; import…
0
votes
2 answers

Xpath not working on HTMLUnit

I'm working with Selenium Web Driver, with both Chrome and HTMLUnit. With Chrome, the following code works, but HTMLUnit returns an error saying that the element couldnt be found. SeleniumUtils.goURL(driver,…
Chema Lopez
  • 375
  • 2
  • 3
  • 9
0
votes
1 answer

"HtmlUnit" Driver with Jmeter shows errors in javascript

I'm trying to add a "WebDriver Sampler" in Jmeter with "HtmlUnit Driver Config". Have written a simple come, which opens a webpage. But in the back ground, there are tons of errors / warnings related to JS and CSS, present in the web…
Bhomik
  • 73
  • 11
0
votes
4 answers

Cannot get Past the Login Page

I can't get pass the login page. I'm correctly grabbing the input elements, populating them, and submitting but I still end up on the original page. I'm unsure where the exact issue is and I've tried ".submit, .click, and emulated a javascript ENTER…
FFFF
  • 21
  • 4
0
votes
1 answer

HtmlUnitDriver open url witch chrome cookie

(translated) I use this code: println("load cookies...") val cookies: Set = ChromeBrowser().cookies as Set println("load client...") val browser = HtmlUnitDriver(true) println("transfer cookies...") for(cookie in…
Roman
  • 43
  • 6
0
votes
1 answer

How can I work on headless browsers with htmlunit driver in selenium-java 3.12 and java 1.8

In versions lower than 2.52 with (java 1.7), selenium-java comes integrated with the same and I had to simply add selenium lib jars containing htmlunit driver to the build path. Now on google search I found the latest htmlunit driver version is 2.9…
a4aravind
  • 1,202
  • 1
  • 14
  • 25
0
votes
0 answers

OutOfMemoryError due to com.gargoylesoftware.htmlunit.html.HtmlPage

I have recently started looking into htmlunit. I am troubleshooting an out of memory issue caused in my application, eclise MAT is showing there is a huge Retained Heap of two objects if HtmlPage object, can anyone help he identity the route…
Shamim Ahmad
  • 808
  • 3
  • 22
  • 40
0
votes
1 answer

Wait for page to be loaded with HtmlUnitDriver

I have several tests that run with Selenium and HtmlUnitDriver. Sometimes when I run them and want to click on an element or read text, the elements can not be found. Every time a Exception is thrown I save the Code of the Page for debugging…
fuzzi
  • 87
  • 8
0
votes
0 answers

Selenium HTMLUnitDriver Anchor tag click event not working

I am working on scraping some data from site using selenium html unit driver but when i click on Anchor tag using click() function i got below exception net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped…
Akash Chavda
  • 1,185
  • 1
  • 11
  • 29
0
votes
0 answers

org.openqa.selenium.phantomjs does not exist

I am trying to use PhantomJSDriver with selenium. However, it gives an error. System.setProperty("phantomjs.binary.path", "C:\\Users\\Caglar\\Desktop\\Tepav CV\\Phantomjs\\bin\\phantomjs.exe"); WebDriver driver = new PhantomJSDriver(); This is…
C.Aglar
  • 1,290
  • 2
  • 14
  • 30
0
votes
1 answer

HtmlUnit - how to click an input element?

There is a submit button in a form: next I select and submit it by the way HtmlElement submit =…
rozerro
  • 5,787
  • 9
  • 46
  • 94
0
votes
0 answers

Find the dialog to log in

I've been trying to run this piece of code for a few days to log in. The problem that I have to face without having found a solution is the following: I do not understand why the driver does not make the switch and how you see the error is that it…
0
votes
1 answer

getting javascript error when trying to get svg base64 image from javascript using selenium htmlunit

In my javascript i am converting an svg object into base 64 using var svg= svgObject; var serializer = new XMLSerializer(); var svgString = serializer.serializeToString(svg); return new Blob([svgString],…