Unable to click on Xpath element even the correct path,tried with Webdriver wait and Javascript executor still no use.
My code:
driver.findElement(By.xpath(".//*[text()='Next']")).click();
Page:
<button id="paginationNext" class="btn pagination2__next" data-selenium="pagination-next-btn">Next</button>