title: my coding driver.findElement(By.linkText("Logout")).click(); is not executed in the test script
body: <p>I am a new tester, I got two question regarding my test script, I  export my test script(export to Junit4 webdriver) from selenium ide and then paste it into my eclipse indigo. But when I run my test script, It will only run until<br>
  <code>driver.findElement(By.name("j_idt61")).click();</code></p>
  
  <p>After that line of code actually got one more line which is to click log out link <code>driver.findElement(By.linkText("Logout")).click();</code></p>
  
  <p>but selenium seems can't find linkText "<code>Logout</code>"..</p>
  
  <p>this is my code </p>
  
  <pre><code>package admin ;
  
  import java.util.regex.Pattern;
  import java.util.concurrent.TimeUnit;
  import org.junit.*;
  import static org.junit.Assert.*;
  import static org.hamcrest.CoreMatchers.*;
  import org.openqa.selenium.*;
  import org.openqa.selenium.firefox.FirefoxDriver;
  import org.openqa.selenium.support.ui.Select;
  
  public class login {
    private WebDriver driver;
    private String baseUrl;
    private boolean acceptNextAlert = true;
    private StringBuffer verificationErrors = new StringBuffer();
  
    @Before
    public void setUp() throws Exception {
      driver = new FirefoxDriver();
      baseUrl = " here I put my website URL";
      driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
    }
  
    @Test
    public void testLogin() throws Exception {
      driver.get(baseUrl + "/admin/pages/login.xhtml");
  
      driver.findElement(By.id("j_username")).click();
      driver.findElement(By.id("j_username")).clear();
      driver.findElement(By.id("j_username")).sendKeys("sasa");
      driver.findElement(By.id("j_password")).click();
      driver.findElement(By.id("j_password")).clear();
      driver.findElement(By.id("j_password")).sendKeys("sasasamsudin");
      driver.findElement(By.name("j_idt61")).click();
      driver.findElement(By.linkText("Logout")).click();
    }
  
    @After
    public void tearDown() throws Exception {
      driver.quit();
      String verificationErrorString = verificationErrors.toString();
      if (!"".equals(verificationErrorString)) {
        fail(verificationErrorString);
      }
    }
  
   public boolean isElementPresent(By id) {
      try {
        driver.findElements(By.id("J_idt16:J_idt30"));
        return true;
      } catch (org.openqa.selenium.NoSuchElementException e) {
        return false;
      }
    }
  
   public boolean isElementVisible(By id)
   {
  
       return driver.findElement(By.id("J_idt16:J_idt30")).isDisplayed();
  
   }
  
    private String closeAlertAndGetItsText() {
      try {
        Alert alert = driver.switchTo().alert();
        if (acceptNextAlert) {
          alert.accept();
        } else {`enter code here`
          alert.dismiss();
        }
        return alert.getText();
      } finally {
        acceptNextAlert = true;
      }
    }
  }
  </code></pre>
  
  <p>Please anyone help me .I just start my work and really need this automation testing to be working properly ..THANKS :) </p>