2

WebDriver block = driver.findElement(By.xpath("//*[@id=\"www-wikipedia-org\"]/div[11]/div[3]")); A WebDriver is not an WebElement; objects of these types are in different objects hierarchies. https://www.javadoc.io/doc/org.seleniumhq.selenium/selenium-api/2.50.1/org/openqa/selenium/WebDriver.html https://www.javadoc.io/static/org....


1

You need to uppercase first letter of "chrome" so that it would be web = webdriver.Chrome()


1

If the input type is multiple you can send a comma-delineated string of file paths.


Only top voted, non community-wiki answers of a minimum length are eligible