The dialog is implemented in this way in the application:
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage("Something");
builder.setTitle("Something");
dialog = builder.create();
dialog.show();
How can I find this element in testing Appium script?
driver.switchTo().alert(); throws NotImplementError
driver.findElement(By.tagName("AlertDialog")) does not work
And I found this problem NYI Warning Methods on Github. Is there a workaround for this?
By the way, I will not click “OK” or “Cancel” in this dialog box, I am going to wait until this dialog box disappears automatically.
Thanks in advance.
source
share