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
Post a Comment