【发布时间】:2020-02-10 08:29:28
【问题描述】:
[在此处输入图像描述][1]我有一个应用程序,它显示一个弹出窗口,根据用户是否要启用或不启用指纹选项,点击是或否。 - 密码通过验证后,会自动弹出一个窗口,询问用户是否要启用指纹。
我已经尝试通过它们的 id 和 xpaths 来定位元素,但没有一个工作
driver.findElement(By.id("etEmailAddress")).sendKeys("wa@qa.xyz");
driver.findElement(By.id("btn_continue")).click();
Thread.sleep(5000);
driver.findElement(By.id("etPassword")).sendKeys("PackageX@1");
driver.findElementByXPath("//android.widget.EditText[@text='Password']").sendKeys("PackageX@1");
driver.findElement(By.id("btn_login")).click();
Thread.sleep(5000);
``` //driver.findElement(By.id("app.px.packagex:id/tvNo")).click();
//driver.findElement(By.id("tvNo")).click();
the last 2 lines above:
//driver.findElement(By.id("tvYes")).click();
//driver.findElement(By.id("app.px.packagex:id/tvNo")).click();
I tried using id for both but not working
I want to tap on either of the buttons and then I will be taken into the App where I will be able to see a list of members in the App.
Below is the image in which that pop up appear as auto when CONTINUE button is tapped after providing the password, which asks for Yes or No for FINGERPRINT.:
[enter image description here][1]
[1]: https://i.stack.imgur.com/M6tIk.jpg
【问题讨论】:
标签: java android automation appium-android