简体   繁体   中英

Handling pop-up in android app using Appium

i am using Appium(java) to test android app that contains pop-up window ,(pop-up appears after clicking a button..)

the popup compose from :

Framelayout with resource-id : android:id/content LinearLayout with resource-id :android:id/parentPanel LinearLayout (contain 2 buttons) with resource-id :android:id/buttonPanel

i want to press 1 of the buttons inside it ... i tried verity of options that i found on the web , but nothing works 在此处输入图片说明

您可以使用self.driver.find_element_by_name(“要单击的文本”)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM