Selenium Java - Page Object Model
Given the code snippet:
What will
driver.get("https://example.com/page1");
driver.findElement(By.id("nextBtn")).click();
String currentUrl = driver.getCurrentUrl();What will
currentUrl contain after execution if clicking the button navigates to page2?