I'm using Selenium to perform some tests with JavaScript, and I have a button that does nothing, there is no redirect or action and I believe that this code is clicking the button:
driver.findElement(By.id("submit")).click()
What I want to know is, how can I confirm whether this button was actually clicked or not? I've been trying to use try catch but not having any luck. I'm new to testing and have been searching for an answer but haven't found anything that works in this scenario.