How to identify buttons/text like Submit/Cancel that show up in Dialog Box using Flutter driver java appium?

31 Views Asked by At

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\`
}
0

There are 0 best solutions below