I'm having a similar problem (I believe).
I have a button labeled "Continue" but there is text above it that instructs a user to click "Continue" I feel like my clickContinue() is clicking on the text instead of the button:
public SomeArbitraryPage clickContinue() {
JLabelOperator alternateContinueButton = new JLabelOperator(appFrame, "Continue");
alternateContinueButton.waitComponentShowing(true);
alternateContinueButton.clickMouse();
return new SomeArbitraryPage(sessionObject);
}
The
unit tests where I lead up to clicking this, as well as the actual clicking test pass. How would one make it so that I either loop through and click both... or just click the second one it finds?
Thanks!