You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!"); }
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
The text was updated successfully, but these errors were encountered: