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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -