title: Selenium Java click on a link to get to another page
body: <p>My code initially goes to this page <a href="http://test1.absofttrainings.com" rel="nofollow noreferrer">http://test1.absofttrainings.com</a>, that is the url i have in my get(url) option. After going to this page on top there is TestPages which has an option Java Script, Alert,Confirm, Popup boxes.</p>
  
  <p>Problem: I am trying to click that selection Java script from this page <a href="http://test1.absofttrainings.com" rel="nofollow noreferrer">http://test1.absofttrainings.com</a> and go to the Java script, Alert page.I am getting No such element error. </p>
  
  <p>I tried waituntil visible, implicit wait nothing worked.</p>
  
  <p>browserFunction("firefox", "<a href="http://test1.absofttrainings.com" rel="nofollow noreferrer">http://test1.absofttrainings.com</a>");</p>
  
  <pre><code>    driver.manage().timeouts().implicitlyWait( 15, TimeUnit.SECONDS );
  
      driver.findElement(By.linkText("JavaScript Alert,Confirm,Prompt Boxes")).click();
      driver.manage().timeouts().implicitlyWait( 15, TimeUnit.SECONDS );
      //wait.until(ExpectedConditions.titleContains("JavaScript Alert,Confirm,Prompt Boxes"));
  </code></pre>
  
  <p>Thanks in advance for your time.</p>