There is a Dialog box that shows up and i want to click Submit/Cancel button in that Dialog using flutter driver in Appium TestNg framework. The dialog box appears as attached enter image description here
public static FlutterFinder find = new FlutterFinder(driver);
public static FlutterElement createCaseSubmitBtn=find.byValueKey("createCase_btn_submit");
public static FlutterElement getCreateCaseSubmitBtn() {
return createCaseSubmitBtn;
}
CreateCasePage.getCreateCaseSubmitBtn().click();
find.text("Submit").click();//this as well did not work\`
}