Description
Form submitting button is not found when page contains another button, which is not part of form and is added to the page hierarchy before form. When it is added after the form, it is working. The problem is in the method of Form class:
public final IFormSubmittingComponent findSubmittingButton()
{
IFormSubmittingComponent submittingComponent = (IFormSubmittingComponent) getPage().visitChildren(
IFormSubmittingComponent.class, new IVisitor()
which is serching for the submitting button in the whole page instead of the form only. I think correctly should be
public final IFormSubmittingComponent findSubmittingButton()
{
IFormSubmittingComponent submittingComponent = (IFormSubmittingComponent)visitChildren(
IFormSubmittingComponent.class, new IVisitor()