SeleniumHQ / SeleniumHQ/htmlunit-driver

Too Much Errors

Open
#79 0 comments 1 reaction 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

Dear developer.

I'm trying to extract text from Google Translate.
public static void main(String[] args) {
    WebDriver driver = new HtmlUnitDriver(BrowserVersion.FIREFOX_60);
    ((HtmlUnitDriver) driver).setJavascriptEnabled(true);
    driver.get("https://translate.google.com/#view=home&op=translate&sl=en&tl=ru");
    System.out.println(driver.getTitle());
    WebElement element = driver.findElement(By.id("source"));
    element.sendKeys("Hello world!");
}

When I run this code I get a lot of errors: https://pastebin.com/xUKqNCmS

How can I solve this problem??
Thank you in advance.

Downloaded htmlunit here: https://github.com/SeleniumHQ/htmlunit-driver/releases

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 Java example in the issue with HtmlUnitDriver and reviewing the linked Pastebin error output. Determine which errors are caused by this driver or the Google Translate page, then document a verified resolution or the relevant limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
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.