Selenium Java - Handling Form Elements
Given this Selenium Java snippet, what will be the result if the form submission triggers a success message with id 'successMsg'?
driver.findElement(By.id("username")).sendKeys("testuser");
driver.findElement(By.id("password")).sendKeys("pass123");
driver.findElement(By.id("loginBtn")).click();
String message = driver.findElement(By.id("successMsg")).getText();
System.out.println(message);
