diff --git a/Wrappers/AddressBook.cs b/Wrappers/AddressBook.cs index 923a366..19e7ff2 100644 --- a/Wrappers/AddressBook.cs +++ b/Wrappers/AddressBook.cs @@ -43,6 +43,16 @@ private Button getOkButton() return new Button("OK", iresp.X, iresp.Y, iresp.Height, iresp.Width); } + private Button getSubmitButton() + { + InterfaceResponse iresp = (InterfaceResponse)com.sendCall(FunctionCallFactory.CALLS.GETMODALSUBMITBUTTON, Response.RESPONSES.INTERFACERESPONSE); + if (iresp == null) + { + return null; + } + + return new Button("Submit", iresp.X, iresp.Y, iresp.Height, iresp.Width); + } /// /// Open the address book /// @@ -156,11 +166,11 @@ public bool bm() clickAddressBookBMButton(); Thread.Sleep(ran.Next(200, 300)); - Button ok = getOkButton(); - if (ok == null) + Button submit = getSubmitButton(); + if (submit == null) return false; - bool outcome = click(ok); + bool outcome = click(submit); while (isOpen()) { close();