driver.findElement(By.id("button-verify-wrapper")).click();
Note: 1. if ID or class name is directly given no need to use xpath, can directly use By.id and By.class
2. To perform an action on web element we should know the properties of that element ex. if it is not a button you can not perform click on it
Post a Comment for "Selenium: Click On A " " Button"