title: Spring MVC Integration Test with Selenium
body: <p>I want to do an integration test on my SpringMVC application using Selenium, with something like:</p>
  <pre><code>@Test
  public void mytest() {
      WebDriver driver = new FirefoxDriver();
      driver.get(&quot;localhost:8080/myapp/mycontroller&quot;);
      List&lt;WebElement&gt; elements = driver.findElements(By.cssSelector(&quot;.oi&quot;));
      assertThat(elements, hasSize(1));
  }
  </code></pre>
  <p>Is it possible to &quot;run&quot; my app, the same way that my <code>mvn tomcat7:run</code> would do, and then perform my selenium tests?</p>
  <h3>Update:</h3>
  <p>I'm using Spring 4.0.x. I already have Unit Tests for every classes on my webapp, but I need an Integration Test. My <strong>controllers are already being tested with MockMVC</strong> and spring-test-framework... but I would like to do a selenium integration test.</p>