Selenium Java - Page Object Model
Analyze the following Selenium Java code snippet:
What is the main issue with this code when testing multi-page navigation?
driver.get("https://example.com/dashboard");
driver.findElement(By.linkText("Profile")).click();
String currentUrl = driver.getCurrentUrl();
System.out.println(currentUrl);What is the main issue with this code when testing multi-page navigation?
