My code initially goes to this page http://test1.absofttrainings.com, 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.
Problem: I am trying to click that selection Java script from this page http://test1.absofttrainings.com and go to the Java script, Alert page.I am getting No such element error.
I tried waituntil visible, implicit wait nothing worked.
browserFunction("firefox", "http://test1.absofttrainings.com");
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"));
Thanks in advance for your time.
TestPageselement first. Show code you use to hover