Selenium Java - JavaScriptExecutor
What will be the output of the following Selenium Java code snippet?
Assuming the button element is <button id="submitBtn" type="submit">Submit</button>
WebElement button = driver.findElement(By.id("submitBtn"));
String value = button.getAttribute("type");
System.out.println(value);Assuming the button element is <button id="submitBtn" type="submit">Submit</button>
