HomeworkTests_NoMethods.java contains three unit tests:
broadenSearchShowsMoreResults()
bookInfoIsCorrectOnDetailsPage()
paginationWorksInDetailsPage()
and all of them have the same step "search for keyword".
//searchFor(searchKeyword);
WebElement searchBox = wait.until(ExpectedConditions.
visibilityOfElementLocated(searchBoxId));
searchBox.sendKeys(searchKeyword);
WebElement searchButton = wait.until(ExpectedConditions.
visibilityOfElementLocated(searchButtonId));
searchButton.click();
But for some reason only first broadenSearchShowsMoreResults() works, but other two failed on that step in spite of code is exactly the same:
Error message in trace:
org.openqa.selenium.WebDriverException: unknown error: Element is not clickable at point (1583, 230)
can you paste the line where the error happens?
Actually, the key word java is inserted and after that the test fails, so the line where error happens is this:
WebElement searchButton = wait.until(ExpectedConditions.
visibilityOfElementLocated(searchButtonId));
searchButton.click();
I cannot get it: why exactly same code works for one Unit test and does not work for another?
I got this error when running unit test bookInfoIsCorrectOnDetailsPage:
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.xpath: //a[@testid = 'link_next'] (tried for 15 second(s) with 500 milliseconds interval)
BUT
I cannot see Next and Previous buttons on Detail Page at all. These buttons are visible only on Results page . Please see the attached screen shots below
I dont see those links either.
Maybe they are not in the page any longer.
Yes, it seems the details pages no longer have pagination elements. Maybe it is a bug on their side and they will be back ... who knows :(