title: How can I use a Selenium type method?
body: <p>I have a <a href="https://en.wikipedia.org/wiki/JavaServer_Pages" rel="nofollow noreferrer">JSP</a> page with an input text field.</p>
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;searchText&quot; name=&quot;searchInput&quot;/&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  <p>I wrote a Selenium test case that verifies that the search input text is present.</p>
  <pre><code>public class UIRecipeListTest extends SeleneseTestBase {
  
      @Before
      public void setup() {
          WebDriver driver = new FirefoxDriver(
                          new FirefoxBinary(
                              new File(&quot;C:\\Program Files (x86)\\Mozilla Firefox 3.6\\firefox.exe&quot;)),
                          new FirefoxProfile()
                      );
  
          String baseUrl = &quot;http://localhost:8080/RecipeProject/&quot;;
          selenium = new WebDriverBackedSelenium(driver, baseUrl);
      }
  
      @Test
      public void testShowRecipes() {
          verifyTrue(selenium.isElementPresent(&quot;searchText&quot;));
          selenium.type(&quot;searchText&quot;, &quot;salt&quot;);
      }
  }
  </code></pre>
  <p>The <code>verifyTrue</code> test returns <code>true</code>. However, the <code>selenium.type</code> test failed with this error:</p>
  <blockquote>
  <pre><code>com.thoughtworks.selenium.SeleniumException: Element searchText not found
  </code></pre>
  </blockquote>
  <p>What should I do to make the test work?</p>