SeleniumHQ / SeleniumHQ/htmlunit-driver

Selenium Htmlunit driver Problem getting elements on the right page (Vue.JS)

Open
#87 28 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
266
Forks
91
PR merge metrics
No merged PRs in 30d

Description

So i was trying to switch from using the chrome driver to html unit because it should be faster.
i have javascript enabled and i am getting this error
Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot find function submit in object [object HTMLButtonElement]
I have tried some googling around but I found nothing this is the line where i define the htmlunit driver
HtmlUnitDriver driver = new HtmlUnitDriver(BrowserVersion.FIREFOX_68,true);

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Vue.js page with HtmlUnitDriver configured as HtmlUnitDriver(BrowserVersion.FIREFOX_68, true), then investigate the reported submit error on HTMLButtonElement. Done means determining why the page elements or button behavior differs from Chrome and documenting or implementing a verified resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.