Pregunta de entrevista de Nexient

How do I use Selenium WebDriver with Java to automate a web application?