automation - Selenium webdriver Java how to wait until a link is present -


i have link press , runs js , new link generated on page has text "view report"

how can wait on page until link present , clickable, or timeout if not displayed in 5 minutes?

i have seen question asked few times , tried of solutions can't work.

i've tried rubbish way of waiting minute link takes longer appear fails.

try webdriverwait wait = new webdriverwait(driver, 60);// 1 minute wait.until(expectedconditions.visibilityofelementlocated(by.linktext("view report")));


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -