Selenium Java - Page Object Model
Consider the following Selenium Java code snippet:
If clicking the button navigates to a page titled "Example - Page 2", what will be printed?
driver.get("https://example.com/start");
driver.findElement(By.cssSelector("button.next")).click();
String pageTitle = driver.getTitle();
System.out.println(pageTitle);If clicking the button navigates to a page titled "Example - Page 2", what will be printed?
