what is the error of cucumber.runtime.CucumberException: Arity mismatch: Step Definition in selenium with Java
问题 I have wrritten a feature file to test the create elements button. But it generates an error message of cucumber.runtime.CucumberException: Arity mismatch: Step Definition. I dont know why its happening since I am new to automation testing. The following is the code that I have written. @When("^create elements$") public void create_elements_for_attributes(WebElement elementToClick) throws Throwable { driver.findElement(By.id("newElement")).click(); } The error that I have recieved is as