In a specific scenario, user needs to hit the submit button multiple times in order to get into a specific state. While I am able to perform the submit action for the first time, while doing it for the second time doesn't work.
E.g
public Button getContinueButton() throws Exception {
return new Button(browser, Login.CONTINUE_BUTTON);
}
getContinueButton().click(); //First click works
getContinueButton().click(); //This never gets executed
The HTML looks like this: <button name="button" type="submit" class="button green">Continue</button>
And on a submit failure it looks like this: <button name="button" type="submit" disabled ="disabled" class="button green">Continue</button>
Tried even:
public Button getContinueButton() throws Exception {
WebElement webElement = new WaitElement(browser,
Login.CONTINUE_BUTTON).waitForElementToBeClickable();
return new Button(browser, Login.CONTINUE_BUTTON);
}
The above doesn't work.
Aucun commentaire:
Enregistrer un commentaire