Currently using Selenium for testing with JavaScript. Encountered a button that does nothing when clicked - no redirect or action takes place. This is the code I am using to click the button:
driver.findElement(By.id("submit")).click()
I am trying to figure out how to confirm whether this button was successfully clicked or not. Have attempted try catch method without success. As a beginner in testing, I have searched for solutions but none seem applicable to this specific scenario.