Answer the question
In order to leave comments, you need to log in
How to find elements on the page after following a link?
Tell me how to find the elements on the page, the point is that when writing the test, all the elements were found, as well as when switching to other pages through .click (). But I have a link selected from the array and stored in a variable
travel.trLink = tripCollection.get(i).findElement(By.className("SegmentTitle__header")).findElement(By.tagName("a")).getAttribute("href");
driver.get(trLink);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.className("class=\"Root__main\"")));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question