Hello there!
Im having some issues trying to switch to the alert context to see is alert is present using UiAutomator (v1) on a api lvl 19 application. I have the error: “Method has not yet been implemented” thrown.
Anyone have some ideas?
UiAutomator
DesiredCapabilities appCapabilities = new DesiredCapabilities();
appCapabilities.SetCapability("app", ConfigurationHelper.CaminhoApp);
appCapabilities.SetCapability("automationName", "UiAutomator");
appCapabilities.SetCapability("appPackage", ConfigurationHelper.NomePacoteApp);
appCapabilities.SetCapability("appActivity", ConfigurationHelper.Atividade);
appCapabilities.SetCapability("newCommandTimeout", ConfigurationHelper.TimeoutComandos);
appCapabilities.SetCapability("platformName", "Android");
appCapabilities.SetCapability("deviceName", ConfigurationHelper.Dispositivo);
_driver = new AndroidDriver<AndroidElement>(new Uri(ConfigurationHelper.AppiumServerUrl), appCapabilities);
…
_driver.SwitchTo().Alert();
Error:
System.NotImplementedException
HResult=0x80004001
Message=Method has not yet been implemented
Source=WebDriver
StackTrace:
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) at OpenQA.Selenium.Appium.AppiumDriver
1.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteTargetLocator.Alert()
at Raizen.Selenium.AndroidBaseSteps.IsAlertPresent() in C:\Raizen\source\DotNet\FerramentasArquitetura\TesteAutomatizado\Selenium\branches\Mobile_BDD\APP\Raizen.Selenium\AndroidBaseSteps.cs:line 390
at ZypSystem.Android.Steps.LoginSteps.EntaoUmaMensagemDeUsuarioOuSenhaInvalidosDeveSerExibida() in C:\Users\Weyler\source\repos\ZipSystem.Mobile.Test.UI2be\Android\Steps\LoginSteps.cs:line 48