SeleniumHQ / SeleniumHQ/htmlunit-driver
Too Much Errors
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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