Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too Much Errors #79

Open
VENTO-off opened this issue Aug 1, 2019 · 0 comments
Open

Too Much Errors #79

VENTO-off opened this issue Aug 1, 2019 · 0 comments

Comments

@VENTO-off
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant