Can I improve on my wrapper method?
<p>While using Selenium 2, I have following statements scattered in test methods - </p>

<pre><code> driver.findElement(By.name(usernameBox)).sendKeys(userEmailAddress);
</code></pre>

<p>I think of abstracting them in static methods of a WebUtil class -</p>

<pre><code> public class WebUtils {

    public static void type(WebDeriver driver, String locator, String testData) {
         driver.findElement(By.name(locator)).sendKeys(testData);

    }
 }
</code></pre>

<p>And the method call would be -</p>

<pre><code>  WebUtils.type(driver, usernameBox, userEmailAddress);
</code></pre>

<p>Could I improve it more, for example if I could avoid passing driver object every time, or some thing more?</p>
